/* Page Wrapper */
.tam-agents-page {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 0;
}

/* Page Header */
.tam-page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 20px 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.tam-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grain" width="100" height="100" patternUnits="userSpaceOnUse"><circle cx="50" cy="50" r="1" fill="%23ffffff" opacity="0.1"/></pattern></defs><rect width="100" height="100" fill="url(%23grain)"/></svg>') repeat;
    opacity: 0.3;
}

.tam-header-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    margin: 0 auto;
}

.tam-page-title {
    font-size: 3.5em;
    font-weight: 700;
    margin: 0 0 20px 0;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
    letter-spacing: -1px;
}

.tam-page-subtitle {
    font-size: 1.3em;
    opacity: 0.9;
    margin: 0;
    font-weight: 300;
    line-height: 1.6;
}

.tam-header-decoration {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.tam-decoration-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    animation: pulse 2s infinite;
}

.tam-decoration-circle:nth-child(2) {
    animation-delay: 0.5s;
}

.tam-decoration-circle:nth-child(3) {
    animation-delay: 1s;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.2); }
}

/* Main Container */
.tam-agents-container {
    max-width: 1200px;
    margin: -40px auto 0;
    padding: 0 20px 40px;
    position: relative;
    z-index: 3;
}

/* Filter Section */
.tam-agents-filter {
    background: #ffffff;
    padding: 30px;
    margin-bottom: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255,255,255,0.8);
}

.tam-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    align-items: flex-end;
}

.tam-filter-group {
    flex: 1;
    min-width: 200px;
}

.tam-filter-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.tam-filter-group input[type="text"],
.tam-filter-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.07);
}

/* Loading spinner for form submission */
.tam-loading-spinner {
    display: inline-block;
    width: 12px;
    height: 12px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #3498db;
    border-radius: 50%;
    animation: tam-spin 1s linear infinite;
    margin-right: 5px;
}

@keyframes tam-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Agents List Styles */
.tam-agents-list {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 40px;
    padding: 0 10px;
}

/* Instant Popup Styles */
.tam-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.tam-popup-container {
    background: white;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-height: 90vh;
    overflow-y: auto;
    animation: popupSlideIn 0.3s ease-out;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.tam-popup-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tam-popup-title {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
}

.tam-popup-close {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.3s ease;
}

.tam-popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.tam-popup-content {
    padding: 30px;
}

.tam-instant-popup-content h4 {
    color: #333;
    margin: 0 0 10px 0;
    font-size: 18px;
}

.tam-instant-popup-content p {
    color: #666;
    margin: 0 0 20px 0;
}

.tam-form-group {
    margin-bottom: 20px;
}

.tam-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.tam-form-group input,
.tam-form-group textarea {
    width: 100%;
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.tam-form-group input:focus,
.tam-form-group textarea:focus {
    outline: none;
    border-color: #667eea;
}

.tam-form-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 25px;
}

.tam-submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.tam-submit-btn:hover {
    transform: translateY(-2px);
}

.tam-cancel-btn {
    background: #f5f5f5;
    color: #666;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.tam-cancel-btn:hover {
    background: #e0e0e0;
}

.tam-agent-list-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8f9fa 100%);
    border: 1px solid #e3e6ea;
    border-radius: 24px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
    position: relative;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.tam-agent-list-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 25%, #f093fb 50%, #f093fb 75%, #667eea 100%);
    border-radius: 24px 24px 0 0;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

.tam-agent-list-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(102, 126, 234, 0.15), 0 8px 32px rgba(0, 0, 0, 0.1);
    border-color: #667eea;
    background: linear-gradient(145deg, #ffffff 0%, #f0f4ff 100%);
}

.tam-agent-main-content {
    display: grid;
    grid-template-columns: 2fr 1fr 200px;
    gap: 25px;
    padding: 25px;
    align-items: start;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: relative;
    min-height: 200px;
}

.tam-agent-main-content::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 80%, rgba(102, 126, 234, 0.03) 0%, transparent 50%),
                radial-gradient(circle at 80% 20%, rgba(240, 147, 251, 0.03) 0%, transparent 50%);
    pointer-events: none;
    border-radius: 0 0 24px 24px;
}

/* Left Section */
.tam-agent-left {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tam-company-header {
    margin-bottom: 10px;
}

.tam-company-name {
    font-size: 28px;
    font-weight: 800;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 15px 0;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    animation: textGlow 4s ease-in-out infinite alternate;
}

@keyframes textGlow {
    0% { filter: drop-shadow(0 0 5px rgba(102, 126, 234, 0.3)); }
    100% { filter: drop-shadow(0 0 10px rgba(240, 147, 251, 0.4)); }
}

.tam-rating-verification {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
}

.tam-rating-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    padding: 8px 16px;
    border-radius: 25px;
    border: 2px solid rgba(255, 215, 0, 0.2);
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.tam-rating-badge::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: rotate(45deg);
    animation: shine 2s infinite;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.tam-star-icon {
    font-size: 14px;
}

.tam-rating-text {
    font-size: 12px;
    color: #b8860b;
    font-weight: 600;
}

.tam-verified-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    padding: 8px 16px;
    border-radius: 25px;
    border: 2px solid rgba(40, 167, 69, 0.2);
    color: white;
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 4px 16px rgba(40, 167, 69, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.tam-check-icon {
    background: #28a745;
    color: white;
    border-radius: 50%;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
}

.tam-destinations-section,
.tam-services-section {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 15px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.08) 0%, rgba(240, 147, 251, 0.05) 100%);
    border-radius: 16px;
    border-left: 5px solid #667eea;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.tam-destinations-section::before,
.tam-services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.tam-destinations-section:hover::before,
.tam-services-section:hover::before {
    transform: translateX(100%);
}

.tam-destinations-section:hover,
.tam-services-section:hover {
    transform: translateX(5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
}

.tam-icon {
    font-size: 16px;
    margin-top: 2px;
}

.tam-label {
    font-weight: 600;
    color: #667eea;
    min-width: 80px;
    text-transform: uppercase;
    font-size: 11px;
    letter-spacing: 0.5px;
}

.tam-destinations-text,
.tam-services-text {
    color: #333;
    line-height: 1.4;
}

/* Center Section */
.tam-agent-center {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.8) 0%, rgba(248, 250, 252, 0.8) 100%);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(102, 126, 234, 0.1);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.tam-address-title {
    font-size: 18px;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0 0 15px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tam-contact-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 8px;
}

.tam-contact-icon {
    font-size: 14px;
    color: #666;
    margin-top: 2px;
}

.tam-contact-text {
    color: #333;
    font-size: 14px;
    line-height: 1.4;
}

.tam-action-buttons {
    display: flex;
    gap: 12px;
    margin-top: 20px;
}

.tam-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tam-get-quote-btn {
    background: linear-gradient(135deg, #ff6b35 0%, #f7931e 100%);
    color: white;
    padding: 14px 28px;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.tam-get-quote-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.tam-get-quote-btn:hover::before {
    left: 100%;
}

.tam-get-quote-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(255, 107, 53, 0.5);
    background: linear-gradient(135deg, #e55a2b 0%, #e8851e 100%);
}

.tam-view-more-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 14px 28px;
    border: none;
    border-radius: 30px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.tam-view-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.tam-view-more-btn:hover::before {
    left: 100%;
}

.tam-view-more-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.5);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

.tam-phone-section {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: bold;
    color: #333;
}

.tam-phone-icon {
    font-size: 16px;
}

.tam-phone-number {
    font-size: 16px;
}

/* Right Section */
.tam-agent-right {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9) 0%, rgba(248, 250, 252, 0.9) 100%);
    border-radius: 20px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.tam-logo-container {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.tam-company-logo {
    width: 140px;
    height: 140px;
    border-radius: 50%;
    overflow: hidden;
    border: 4px solid #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.2);
    position: relative;
    transition: all 0.3s ease;
}

.tam-company-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(102, 126, 234, 0.3);
}

.tam-company-logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tam-default-logo {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.tam-logo-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 32px;
    font-weight: 800;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    position: relative;
}

.tam-logo-placeholder::before {
    content: '';
    position: absolute;
    top: 10%;
    left: 10%;
    right: 10%;
    bottom: 10%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
}

.tam-logo-text {
    font-size: 32px;
    font-weight: 800;
    color: white;
    z-index: 1;
}

.tam-diamond-member {
    display: flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    padding: 10px 16px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.tam-diamond-icon {
    font-size: 14px;
}

/* Tours Section */
.tam-tours-section {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 20px;
    padding: 15px 20px;
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    align-items: start;
}

.tam-tours-left {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.tam-tour-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.tam-tour-arrow {
    color: #007bff;
    font-size: 12px;
}

.tam-tour-link {
    color: #007bff;
    text-decoration: none;
}

.tam-tour-link:hover {
    text-decoration: underline;
}

.tam-tour-name {
    color: #333;
}

.tam-tours-right {
    display: flex;
    align-items: center;
}

.tam-view-all-tours {
    background: #007bff;
    color: white;
    padding: 8px 16px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border: 2px solid #007bff;
    transition: all 0.3s ease;
}

.tam-view-all-tours:hover {
    background: white;
    color: #007bff;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .tam-page-header {
        padding: 40px 20px;
        margin-bottom: 30px;
    }
    
    .tam-page-title {
        font-size: 36px;
    }
    
    .tam-page-subtitle {
        font-size: 16px;
    }
    
    .tam-agents-container {
        padding: 0 15px 30px;
    }
    
    .tam-card-top {
        grid-template-columns: 1fr 150px;
        gap: 20px;
        padding: 20px;
    }
    
    .tam-center-section {
        grid-column: 1 / -1;
        border-left: none;
        border-right: none;
        border-top: 1px solid #e9ecef;
        padding: 15px 0 0 0;
        margin-top: 15px;
    }
    
    .tam-right-section {
        justify-content: flex-end;
    }
    
    .tam-company-logo {
        width: 120px;
        height: 120px;
    }
}

@media (max-width: 768px) {
    .tam-page-header {
        padding: 30px 15px;
        margin-bottom: 20px;
        border-radius: 15px;
    }
    
    .tam-page-title {
        font-size: 28px;
        line-height: 1.2;
    }
    
    .tam-page-subtitle {
        font-size: 14px;
    }
    
    .tam-agents-container {
        margin: -20px auto 0;
        padding: 0 10px 20px;
    }
    
    .tam-agents-list {
        gap: 20px;
        padding: 20px 15px;
    }
    
    .tam-agent-card {
        margin-bottom: 20px;
        border-radius: 15px;
    }
    
    .tam-card-top {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 15px;
    }
    
    .tam-company-name {
        font-size: 24px;
        text-align: center;
    }
    
    .tam-badges-row {
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .tam-info-rows {
        gap: 6px;
    }
    
    .tam-info-row {
        font-size: 13px;
        flex-wrap: wrap;
    }
    
    /* Hide desktop destinations and services on mobile */
    .tam-info-row:has(.tam-icon:contains("📍")),
    .tam-info-row:has(.tam-icon:contains("🎯")) {
        display: none !important;
    }
    
    /* Show mobile-only sections */
    .tam-destinations-mobile-only,
    .tam-services-mobile-only {
        display: block !important;
        visibility: visible !important;
        opacity: 1 !important;
        background: #f0f4ff !important;
        border: 3px solid #667eea !important;
        padding: 15px !important;
        margin: 15px 0 !important;
        border-radius: 12px !important;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2) !important;
    }
    
    .tam-info-header {
        display: flex !important;
        align-items: center !important;
        gap: 10px !important;
        margin-bottom: 10px !important;
        color: #667eea !important;
        font-size: 16px !important;
    }
    
    .tam-destinations-tags,
    .tam-services-tags {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 8px !important;
        margin-top: 10px !important;
    }
    
    .tam-destination-tag,
    .tam-service-tag {
        display: inline-block !important;
        background: linear-gradient(45deg, #667eea, #764ba2) !important;
        color: white !important;
        padding: 8px 15px !important;
        border-radius: 25px !important;
        font-size: 14px !important;
        font-weight: 600 !important;
        margin: 2px !important;
        box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3) !important;
    }
    
    .tam-no-data {
        color: #999 !important;
        font-style: italic !important;
    }
    
    .tam-label {
        min-width: 70px;
        font-size: 11px;
    }
    
    .tam-services-horizontal {
        gap: 8px;
        justify-content: center;
    }
    
    .tam-service-badge {
        padding: 6px 12px;
        font-size: 12px;
    }
    
    .tam-service-badge i {
        font-size: 14px;
    }
    
    .tam-center-section {
        text-align: center;
        padding: 15px 0;
        border-top: 2px solid #e9ecef;
        margin-top: 15px;
    }
    
    .tam-address-title {
        font-size: 16px;
        margin-bottom: 10px;
    }
    
    .tam-address-item {
        justify-content: center;
        text-align: center;
        margin-bottom: 8px;
    }
    
    .tam-action-buttons {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px;
        margin: 15px 0 10px 0;
    }
    
    .tam-btn {
        padding: 10px 20px;
        font-size: 13px;
        min-width: 120px;
    }
    
    .tam-phone-section {
        justify-content: center;
        font-size: 15px;
        margin-top: 10px;
    }
    
    .tam-right-section {
        order: -1;
        justify-content: center;
        padding: 10px;
    }
    
    .tam-company-logo {
        width: 100px;
        height: 100px;
        border-radius: 12px;
    }
    
    .tam-logo-fallback {
        font-size: 24px;
    }
    
    .tam-plan-corner-badge {
        position: relative;
        top: auto;
        right: auto;
        margin-bottom: 10px;
        border-radius: 15px;
        padding: 6px 12px;
    }
    
    .tam-card-bottom {
        flex-direction: column;
        gap: 15px;
        padding: 15px;
        text-align: center;
    }
    
    .tam-tours-left {
        justify-content: center;
        flex-wrap: wrap;
        gap: 10px;
    }
    
    .tam-tour-item {
        font-size: 13px;
    }
    
    .tam-tours-right {
        justify-content: center;
    }
    
    .tam-view-all-tours {
        padding: 8px 16px;
        font-size: 13px;
    }
}

/* Mobile view for 425px and below - Logo box 90% width */
@media (max-width: 425px) {
    .tam-mobile-company-logo {
        width: 90% !important;
        height: 0 !important;
        padding-bottom: 90% !important;
        position: relative !important;
        border-radius: 15px;
        overflow: hidden;
        border: 3px solid #667eea;
        flex-shrink: 0;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        order: 2;
        box-shadow: 0 6px 20px rgba(102, 126, 234, 0.25), 0 2px 8px rgba(0, 0, 0, 0.1);
        transition: all 0.3s ease;
    }
    
    .tam-mobile-company-logo:hover {
        transform: scale(1.05);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.35), 0 4px 12px rgba(0, 0, 0, 0.15);
    }
    
    .tam-mobile-company-logo img,
    .tam-mobile-logo-fallback {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        width: 85% !important;
        height: 85% !important;
        object-fit: contain !important;
        border-radius: 8px;
    }
    
    .tam-mobile-logo-fallback {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
        color: white !important;
        font-weight: 800 !important;
        font-size: 24px !important;
        text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    }
}

@media (max-width: 480px) {
    .tam-page-header {
        padding: 20px 10px;
        margin-bottom: 15px;
    }
    
    .tam-page-title {
        font-size: 24px;
    }
    
    .tam-page-subtitle {
        font-size: 13px;
    }
    
    .tam-agents-container {
        padding: 0 5px 15px;
    }
    
    .tam-agents-list {
        padding: 15px 10px;
        gap: 15px;
    }
    
    .tam-agent-card {
        border-radius: 12px;
    }
    
    .tam-card-top {
        display: flex;
        flex-wrap: wrap;
        padding: 12px;
        gap: 12px;
        align-items: flex-start;
    }
    
    /* Mobile: Logo section (left side) */
    .tam-right-section {
        order: 1;
        flex: 0 0 70px;
        padding: 0;
        background: none;
        box-shadow: none;
        justify-content: flex-start;
    }
    
    /* Mobile: Company info section (right side) */
    .tam-left-section {
        order: 2;
        flex: 1;
        min-width: 0;
        gap: 6px;
        display: flex;
        flex-direction: column;
    }
    
    /* Mobile: Center section (address) goes below */
    .tam-center-section {
        order: 3;
        flex: 1 1 100%;
        border: none;
        padding: 12px 0 0 0;
        margin-top: 12px;
        border-top: 1px solid #e9ecef;
    }
    
    .tam-company-name {
        font-size: 18px;
        text-align: left;
        margin-top: 20px;
        position: relative;
        z-index: 1;
    }
    
    .tam-company-logo {
        width: 70px;
        height: 70px;
        border-radius: 10px;
    }
    
    .tam-logo-fallback {
        font-size: 18px;
    }
    
    /* Mobile: Better sized badges */
    .tam-review-btn {
        padding: 4px 6px;
        font-size: 8px;
        gap: 2px;
        border-radius: 12px;
        min-width: auto;
    }
    
    .tam-review-btn .dashicons {
        font-size: 8px;
        width: 8px;
        height: 8px;
    }
    
    .tam-verified-badge {
        padding: 4px 6px;
        font-size: 8px;
        gap: 2px;
        border-radius: 10px;
    }
    
    .tam-service-badge {
        padding: 4px 8px;
        font-size: 11px;
        gap: 6px;
    }
    
    .tam-service-badge i {
        font-size: 12px;
    }
    
    .tam-action-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .tam-btn {
        width: 100%;
        max-width: 200px;
        padding: 12px 16px;
    }
    
    .tam-card-bottom {
        padding: 12px;
    }
    
    .tam-tours-left {
        gap: 8px;
    }
    
    .tam-tour-item {
        font-size: 12px;
    }
}

/* Page Header - Premium Design */
.tam-page-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 60px 30px;
    border-radius: 25px;
    margin-bottom: 40px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(102, 126, 234, 0.3);
}

.tam-page-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: headerShine 8s linear infinite;
}

@keyframes headerShine {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.tam-header-content {
    position: relative;
    z-index: 2;
    text-align: center;
}

.tam-page-title {
    font-size: 48px;
    font-weight: 900;
    color: white;
    margin: 0 0 15px 0;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    letter-spacing: -1px;
}

.tam-page-subtitle {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 400;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.tam-header-decoration {
    position: absolute;
    top: 20px;
    right: 30px;
    display: flex;
    gap: 10px;
}

.tam-decoration-circle {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    animation: pulse 2s ease-in-out infinite;
}

.tam-decoration-circle:nth-child(2) {
    animation-delay: 0.5s;
}

.tam-decoration-circle:nth-child(3) {
    animation-delay: 1s;
}

@keyframes pulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.2); }
}

/* Agents List View - Premium Design */
.tam-agents-list {
    display: flex;
    flex-direction: column;
    gap: 35px;
    margin-top: 20px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 25px;
    box-shadow: inset 0 2px 10px rgba(0, 0, 0, 0.05);
    position: relative;
}

.tam-agents-list::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2, #f093fb, #f5576c);
    border-radius: 25px 25px 0 0;
}

/* Agent Card - Premium Enhanced Design */
.tam-agent-card {
    background: linear-gradient(145deg, #ffffff 0%, #fafafa 100%);
    border: 3px solid transparent;
    background-clip: padding-box;
    border-radius: 20px;
    padding: 0;
    margin-bottom: 30px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
}

.tam-agent-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #e74c3c, #f39c12, #9b59b6, #3498db);
    border-radius: 20px;
    padding: 3px;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: subtract;
    z-index: -1;
}

.tam-agent-card:hover {
    box-shadow: 0 20px 60px rgba(231, 76, 60, 0.25), 0 10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(-8px) scale(1.03);
}

.tam-agent-card:hover .tam-company-name {
    background: linear-gradient(135deg, #e74c3c 0%, #f39c12 50%, #9b59b6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tam-agent-card:hover::before {
    background: linear-gradient(135deg, #c0392b, #e67e22, #8e44ad, #2980b9);
}

/* Top Section Layout */
.tam-card-top {
    display: grid;
    grid-template-columns: 1fr 320px 180px;
    gap: 30px;
    padding: 30px;
    border-bottom: 2px solid #f0f0f0;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    position: relative;
}

.tam-card-top::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 30px;
    right: 30px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #e74c3c, transparent);
}

/* Left Section - Company Info */
.tam-left-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tam-company-name {
    font-size: 32px;
    font-weight: 900;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 50%, #e74c3c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin: 0;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    letter-spacing: -0.5px;
}

.tam-badges-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    margin-bottom: 5px;
}

.tam-rating-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #f9d56e 0%, #f5c33b 100%);
    color: #8a5a0b;
    padding: 6px 12px;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    position: relative;
    overflow: hidden;
    margin-right: 8px;
}

/* Google Reviews Button Styling */
.tam-review-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: linear-gradient(135deg, #4285F4 0%, #34A853 100%);
    color: white !important;
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(66, 133, 244, 0.3);
    position: relative;
    overflow: hidden;
}

.tam-review-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(66, 133, 244, 0.4);
    color: white !important;
}

.tam-review-btn:active {
    transform: translateY(0);
}

.tam-review-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tam-review-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.tam-review-btn:hover::before {
    left: 100%;
}

.tam-rating-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s;
}

.tam-rating-badge:hover::before {
    left: 100%;
}

.tam-star {
    font-size: 16px;
}

.tam-verified-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 2px solid #27ae60;
    box-shadow: 0 2px 8px rgba(46, 204, 113, 0.3);
}

.tam-check {
    font-weight: bold;
    font-size: 14px;
}

.tam-member-badge {
    display: flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #9b59b6 0%, #8e44ad 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 2px solid #8e44ad;
    box-shadow: 0 2px 8px rgba(155, 89, 182, 0.3);
    position: relative;
}

.tam-member-badge::after {
    content: '';
    position: absolute;
    top: -3px;
    right: -3px;
    width: 12px;
    height: 12px;
    background: #f39c12;
    border-radius: 50%;
    border: 2px solid white;
}

.tam-diamond {
    font-size: 14px;
}

.tam-info-rows {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 8px;
}

.tam-info-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.tam-icon {
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.tam-label {
    font-weight: 600;
    color: #666;
    min-width: 80px;
    flex-shrink: 0;
}

.tam-value {
    color: #333;
    flex: 1;
}

/* Center Section - Address */
.tam-center-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 0 20px;
    border-left: 1px solid #e9ecef;
    border-right: 1px solid #e9ecef;
}

.tam-address-title {
    font-size: 18px;
    font-weight: bold;
    color: #333;
    margin: 0;
}

.tam-address-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    line-height: 1.4;
}

.tam-address-icon {
    font-size: 16px;
    margin-top: 2px;
    flex-shrink: 0;
}

.tam-address-text {
    color: #333;
    flex: 1;
}

.tam-action-buttons {
    display: flex;
    gap: 10px;
    margin: 8px 0;
}

.tam-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.tam-get-quote-btn {
    background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
    border: 2px solid #d35400;
}

.tam-get-quote-btn:hover {
    background: linear-gradient(135deg, #d35400 0%, #bf4f36 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
}

.tam-view-more-btn {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    border: 2px solid #2980b9;
    position: relative;
    overflow: hidden;
}

.tam-view-more-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s;
}

.tam-view-more-btn:hover::before {
    left: 100%;
}

.tam-view-more-btn:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f5f99 100%);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(52, 152, 219, 0.5);
    border-color: #1f5f99;
}

.tam-view-more-btn::after {
    content: '→';
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    font-weight: bold;
    opacity: 0;
    transition: all 0.3s ease;
}

.tam-view-more-btn:hover::after {
    opacity: 1;
    right: 12px;
}

.tam-phone-section {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-top: 8px;
}

.tam-phone-icon {
    font-size: 18px;
}

/* Right Section - Logo */
.tam-right-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.tam-company-logo {
    width: 140px;
    height: 140px;
    border-radius: 16px;
    overflow: hidden;
    border: 3px solid #e74c3c;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.tam-company-logo:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(231, 76, 60, 0.2);
}

.tam-company-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 8px;
}

.tam-logo-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    font-weight: bold;
    font-size: 32px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Bottom Section - Tours */
.tam-card-bottom {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 25px 30px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-top: 2px solid #dee2e6;
    position: relative;
}

.tam-card-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, #3498db, transparent);
}

.tam-tours-left {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    flex: 1;
}

.tam-tour-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #3498db;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 15px;
    background: rgba(52, 152, 219, 0.1);
    transition: all 0.3s ease;
}

.tam-tour-item:hover {
    background: rgba(52, 152, 219, 0.2);
    transform: translateX(5px);
    color: #2980b9;
}

.tam-arrow {
    font-size: 14px;
    font-weight: bold;
}

.tam-view-all-tours {
    background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
    color: white;
    padding: 12px 20px;
    border-radius: 25px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    transition: all 0.3s ease;
}

.tam-view-all-tours:hover {
    background: linear-gradient(135deg, #2980b9 0%, #1f5f99 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    text-decoration: none;
}

/* Plan Category Corner Badge */
.tam-plan-corner-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
    color: white;
    padding: 8px 12px 8px 10px;
    border-radius: 0 12px 0 12px;
    font-size: 13px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    z-index: 5;
    transition: all 0.3s ease;
    border: none;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    line-height: 1.2;
    min-width: 80px;
    text-align: center;
}

/* Mobile plan badge positioning */
@media (max-width: 768px) {
    .tam-plan-corner-badge {
        top: 5px;
        right: 5px;
        font-size: 10px;
        padding: 4px 8px;
        min-width: 60px;
        z-index: 2;
    }
}

/* Mobile-Specific Design - 3 Row Layout */
@media (max-width: 768px) {
    .tam-agent-card {
        border-radius: 15px;
        margin-bottom: 25px;
        position: relative;
        overflow: hidden;
    }
    
    /* Show mobile plan category stamp but hide desktop badges */
    .tam-desktop-plan-badge,
    .tam-desktop-plan-category {
        display: none !important;
    }
    
    /* Mobile Plan Category Badge - Circle Stamp on Right */
    .tam-mobile-plan-badge {
        position: absolute;
        top: 0;
        right: 0;
        z-index: 20;
    }
    
    /* Hide any plan category text that might appear at bottom */
    .tam-agent-card::after,
    .tam-agent-card::before {
        display: none !important;
        content: none !important;
    }
    
    .tam-card-top {
        display: flex;
        flex-direction: column;
        padding: 0;
        gap: 0;
        border-bottom: none;
    }
    
    /* Mobile Plan Category Badge - Circle Stamp on Right */
    .tam-mobile-plan-badge {
        position: absolute;
        top: 0;
        right: 0;
        z-index: 20;
    }
    
    .tam-mobile-plan-category {
        background: linear-gradient(135deg, #e74c3c 0%, #c0392b 50%, #8e44ad 100%);
        color: white;
        padding: 8px;
        text-align: center;
        font-size: 9px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.1px;
        border-radius: 50%;
        box-shadow: 0 8px 25px rgba(231, 76, 60, 0.5), 0 4px 15px rgba(0, 0, 0, 0.2), inset 0 2px 4px rgba(255, 255, 255, 0.2);
        width: 75px;
        height: 75px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 4px solid white;
        position: absolute;
        top: 0px;
        right: 0px;
        overflow: visible;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        transform: rotate(-15deg);
        z-index: 20;
        cursor: pointer;
    }
    
    .tam-mobile-plan-text {
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        width: 100%;
        height: 100%;
        position: absolute;
        top: 0;
        left: 0;
        z-index: 2;
        transform: rotate(15deg);
        font-family: 'Arial Black', Arial, sans-serif;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
        line-height: 1;
    }
    
    /* Enhanced stamp effects */
    .tam-mobile-plan-category::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transform: rotate(45deg);
        animation: stampShine 3s infinite;
    }
    
    .tam-mobile-plan-category::after {
        content: '';
        position: absolute;
        top: 3px;
        left: 3px;
        right: 3px;
        bottom: 3px;
        border: 1px dashed rgba(255, 255, 255, 0.3);
        border-radius: 50%;
    }
    
    @keyframes stampShine {
        0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
        50% { transform: translateX(0%) translateY(0%) rotate(45deg); }
        100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
    }
    
    .tam-mobile-plan-category:hover {
        transform: rotate(-15deg) scale(1.15);
        box-shadow: 0 12px 35px rgba(231, 76, 60, 0.6), 0 6px 20px rgba(0, 0, 0, 0.25), inset 0 3px 6px rgba(255, 255, 255, 0.3);
    }
    
    /* Additional stamp authenticity effects */
    .tam-mobile-plan-category::after {
        content: '';
        position: absolute;
        top: 8px;
        left: 8px;
        right: 8px;
        bottom: 8px;
        border: 2px dashed rgba(255, 255, 255, 0.4);
        border-radius: 50%;
        z-index: 1;
    }
    
    .tam-mobile-plan-text {
        transform: rotate(15deg);
        font-family: 'Arial Black', Arial, sans-serif;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }
    
    
    /* ROW 1: Company Info with 3 Sub-rows */
    .tam-mobile-row-1 {
        display: flex;
        flex-direction: column;
        padding: 15px 15px 15px 15px;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        border-bottom: 2px solid #e9ecef;
        margin-top: 0;
        position: relative;
    }
    
    /* Sub-row 1: Company Name & Logo + Reviews & Verification */
    .tam-mobile-subrow-1 {
        display: flex;
        justify-content: space-between;
        align-items: flex-start;
        margin-bottom: 12px;
        gap: 15px;
    }
    
    /* Column 1: Company Name (top) + Logo (bottom) */
    .tam-mobile-company-column {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        width: 40%;
        flex-shrink: 0;
    }
    
    .tam-mobile-company-name {
        font-size: 18px;
        font-weight: 700;
        color: #333;
        margin: 0;
        line-height: 1.2;
        order: 1;
    }
    
    .tam-mobile-company-logo {
        width: 90%;
        aspect-ratio: 1;
        border-radius: 12px;
        overflow: hidden;
        border: 2px solid #667eea;
        flex-shrink: 0;
        background: #ffffff;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 6px;
        order: 2;
        box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
    }
    
    .tam-mobile-company-logo img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        border-radius: 8px;
    }
    
    .tam-mobile-logo-fallback {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        font-weight: bold;
        font-size: 20px;
    }
    
    /* Column 2: Established, GST, Verified + Google Reviews */
    .tam-mobile-info-column {
        display: flex;
        flex-direction: column;
        gap: 6px;
        width: 55%;
        padding-left: 10px;
        padding-right: 10px;
        padding-top: 45px;
        flex-shrink: 0;
    }
    
    .tam-mobile-est-item,
    .tam-mobile-gst-item {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 11px;
        color: #666;
    }
    
    .tam-mobile-verified-row {
        display: flex;
        align-items: center;
        gap: 8px;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
    
    .tam-mobile-verified-badge {
        display: flex;
        align-items: center;
        gap: 4px;
        background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
        color: white;
        padding: 4px 8px;
        border-radius: 12px;
        font-size: 10px;
        font-weight: 600;
    }
    
    .tam-mobile-review-btn {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        background: linear-gradient(135deg, #4285F4 0%, #34A853 100%);
        color: white;
        padding: 6px 10px;
        border-radius: 15px;
        font-size: 10px;
        font-weight: 600;
        text-decoration: none;
        border: none;
        white-space: nowrap;
    }
    
    /* Sub-row 2: Destinations */
    .tam-mobile-subrow-2 {
        margin-bottom: 12px;
    }
    
    .tam-mobile-destinations {
        background: #f0f4ff;
        border: 2px solid #667eea;
        border-radius: 12px;
        padding: 12px;
    }
    
    .tam-mobile-destinations-header {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 8px;
        color: #667eea;
        font-weight: 600;
        font-size: 14px;
    }
    
    .tam-mobile-destinations-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .tam-mobile-destination-tag {
        background: linear-gradient(45deg, #667eea, #764ba2);
        color: white;
        padding: 6px 12px;
        border-radius: 15px;
        font-size: 11px;
        font-weight: 600;
    }
    
    /* Sub-row 3: Services */
    .tam-mobile-subrow-3 {
        margin-bottom: 0;
    }
    
    .tam-mobile-services {
        background: #f0f8ff;
        border: 2px solid #3498db;
        border-radius: 12px;
        padding: 12px;
    }
    
    .tam-mobile-services-header {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 8px;
        color: #3498db;
        font-weight: 600;
        font-size: 14px;
    }
    
    .tam-mobile-services-tags {
        display: flex;
        flex-wrap: wrap;
        gap: 6px;
    }
    
    .tam-mobile-service-tag {
        background: linear-gradient(45deg, #3498db, #2980b9);
        color: white;
        padding: 6px 12px;
        border-radius: 15px;
        font-size: 11px;
        font-weight: 600;
        display: flex;
        align-items: center;
        gap: 4px;
    }
    
    .tam-service-icon {
        font-size: 14px !important;
        display: inline-block !important;
        margin-right: 6px !important;
        line-height: 1 !important;
    }
    
    /* ROW 2: Contact Details & Action Buttons */
    .tam-mobile-row-2 {
        display: flex;
        flex-direction: column;
        padding: 15px;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-bottom: 2px solid #dee2e6;
        gap: 12px;
    }
    
    .tam-mobile-contact-info {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .tam-mobile-contact-item {
        display: flex;
        align-items: center;
        gap: 8px;
        font-size: 13px;
        color: #333;
    }
    
    .tam-mobile-contact-icon {
        font-size: 16px;
        color: #667eea;
        width: 20px;
        text-align: center;
    }
    
    .tam-mobile-action-buttons {
        display: flex;
        gap: 10px;
        justify-content: center;
    }
    
    .tam-mobile-btn {
        flex: 1;
        padding: 12px 16px;
        border: none;
        border-radius: 25px;
        font-size: 13px;
        font-weight: 600;
        cursor: pointer;
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }
    
    .tam-mobile-get-quote-btn {
        background: linear-gradient(135deg, #e67e22 0%, #d35400 100%);
        color: white;
        box-shadow: 0 4px 15px rgba(230, 126, 34, 0.3);
    }
    
    .tam-mobile-view-more-btn {
        background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
        color: white;
        box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
    }
    
    /* ROW 3: Tours Section */
    .tam-mobile-row-3 {
        display: flex;
        flex-direction: column;
        padding: 15px;
        background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
        gap: 12px;
    }
    
    .tam-mobile-tours-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
        margin-bottom: 12px;
    }
    
    .tam-mobile-tour-item {
        display: flex;
        align-items: center;
        gap: 6px;
        color: #3498db;
        font-size: 12px;
        font-weight: 500;
        padding: 8px 10px;
        border-radius: 12px;
        background: rgba(52, 152, 219, 0.1);
        border: 1px solid rgba(52, 152, 219, 0.2);
    }
    
    .tam-mobile-tour-arrow {
        font-size: 10px;
        color: #3498db;
    }
    
    .tam-mobile-tour-link {
        color: #3498db;
        text-decoration: none;
        flex: 1;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    
    .tam-mobile-view-all-tours {
        background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
        color: white;
        padding: 12px 20px;
        border-radius: 25px;
        text-decoration: none;
        font-size: 14px;
        font-weight: 600;
        text-align: center;
        box-shadow: 0 4px 15px rgba(52, 152, 219, 0.3);
        transition: all 0.3s ease;
    }
    
    /* Hide desktop elements on mobile */
    .tam-left-section,
    .tam-center-section,
    .tam-right-section,
    .tam-card-bottom {
        display: none !important;
    }
    
    /* Show mobile layout only on mobile */
    .tam-mobile-row-1,
    .tam-mobile-row-2,
    .tam-mobile-row-3 {
        display: flex !important;
    }
    
    /* Mobile button hover effects */
    .tam-mobile-get-quote-btn:hover {
        background: linear-gradient(135deg, #d35400 0%, #bf4f36 100%);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(230, 126, 34, 0.4);
    }
    
    .tam-mobile-view-more-btn:hover {
        background: linear-gradient(135deg, #2980b9 0%, #1f5f99 100%);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    }
    
    .tam-mobile-view-all-tours:hover {
        background: linear-gradient(135deg, #2980b9 0%, #1f5f99 100%);
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(52, 152, 219, 0.4);
    }
}

/* Extra small mobile devices */
@media (max-width: 480px) {
    .tam-mobile-company-name {
        font-size: 16px;
    }
    
    .tam-mobile-company-logo {
        width: 50px;
        height: 50px;
    }
    
    .tam-mobile-logo-fallback {
        font-size: 16px;
    }
    
    .tam-mobile-review-btn {
        padding: 4px 8px;
        font-size: 9px;
    }
    
    .tam-mobile-verified-badge {
        padding: 3px 6px;
        font-size: 9px;
    }
    
    .tam-mobile-establishment-gst {
        font-size: 10px;
    }
    
    .tam-mobile-destinations-header,
    .tam-mobile-services-header {
        font-size: 12px;
    }
    
    .tam-mobile-destination-tag,
    .tam-mobile-service-tag {
        padding: 4px 8px;
        font-size: 10px;
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
    }
    
    .tam-mobile-service-tag i {
        font-size: 11px !important;
        display: inline-block !important;
        width: auto !important;
        height: auto !important;
        visibility: visible !important;
        opacity: 1 !important;
        color: white !important;
        font-family: "Font Awesome 5 Free" !important;
        font-weight: 900 !important;
        -webkit-font-smoothing: antialiased !important;
        font-style: normal !important;
        font-variant: normal !important;
        text-rendering: auto !important;
        line-height: 1 !important;
    }
    
    .tam-mobile-contact-item {
        font-size: 12px;
    }
    
    .tam-mobile-btn {
        padding: 10px 14px;
        font-size: 12px;
    }
    
    .tam-mobile-tour-item {
        font-size: 11px;
        padding: 6px 8px;
    }
    
    .tam-mobile-view-all-tours {
        padding: 10px 16px;
        font-size: 12px;
    }
}

/* Show plan badge on all screen sizes, hide other mobile elements on desktop */
@media (min-width: 769px) {
    .tam-mobile-row-1,
    .tam-mobile-row-2,
    .tam-mobile-row-3,
    .tam-mobile-plan-badge {
        display: none !important;
    }
    
    /* Show desktop plan badge */
    .tam-desktop-plan-badge {
        display: block !important;
        position: absolute;
        top: 0;
        right: 0;
        z-index: 20;
    }
    
    .tam-desktop-plan-category {
        background: linear-gradient(135deg, #e74c3c 0%, #c0392b 50%, #8e44ad 100%);
        color: white;
        padding: 12px;
        text-align: center;
        font-size: 11px;
        font-weight: 900;
        text-transform: uppercase;
        letter-spacing: 0.2px;
        border-radius: 50%;
        box-shadow: 0 10px 30px rgba(231, 76, 60, 0.6), 0 5px 20px rgba(0, 0, 0, 0.25), inset 0 3px 6px rgba(255, 255, 255, 0.25);
        width: 95px;
        height: 95px;
        display: flex;
        align-items: center;
        justify-content: center;
        border: 4px solid white;
        position: relative;
        overflow: visible;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        transform: rotate(-15deg);
    }
    
    .tam-desktop-plan-text {
        display: block;
        position: relative;
        z-index: 2;
        transform: rotate(15deg);
        font-family: 'Arial Black', Arial, sans-serif;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    }
    
    /* Enhanced stamp effects for desktop */
    .tam-desktop-plan-category::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transform: rotate(45deg);
        animation: stampShine 3s infinite;
    }
    
    .tam-desktop-plan-category::after {
        content: '';
        position: absolute;
        top: 8px;
        left: 8px;
        right: 8px;
        bottom: 8px;
        border: 2px dashed rgba(255, 255, 255, 0.4);
        border-radius: 50%;
        z-index: 1;
    }
    
    .tam-desktop-plan-category:hover {
        transform: rotate(-15deg) scale(1.15);
        box-shadow: 0 12px 35px rgba(231, 76, 60, 0.6), 0 6px 20px rgba(0, 0, 0, 0.25), inset 0 3px 6px rgba(255, 255, 255, 0.3);
    }
}

.tam-agent-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border: 1px solid rgba(255,255,255,0.8);
    position: relative;
}


.tam-agent-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.tam-agent-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    z-index: 1;
}

.tam-agent-card-inner {
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
}

.tam-card-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(45deg, #4CAF50, #45a049);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75em;
    font-weight: 600;
    z-index: 2;
    box-shadow: 0 2px 8px rgba(76, 175, 80, 0.3);
}

.tam-badge-text {
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Modal Styles */
.tam-modal {
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.tam-modal-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    margin: 5% auto;
    padding: 0;
    border: none;
    border-radius: 20px;
    width: 90%;
    max-width: 600px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: modalSlideIn 0.3s ease-out;
    overflow: hidden;
}

@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.tam-modal-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tam-modal-header h3 {
    margin: 0;
    font-size: 1.4em;
    font-weight: 600;
}

.tam-modal-close {
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.tam-modal-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg);
}

.tam-modal-body {
    padding: 25px;
}

.tam-agent-contact-info {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
}

.tam-agent-contact-info p {
    margin: 8px 0;
    font-weight: 500;
}

.tam-quote-form .tam-form-group {
    margin-bottom: 20px;
}

.tam-quote-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 0.95em;
}

.tam-quote-form input,
.tam-quote-form textarea {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #fafbfc;
    box-sizing: border-box;
}

.tam-quote-form input:focus,
.tam-quote-form textarea:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.tam-quote-form textarea {
    resize: vertical;
    min-height: 100px;
}

.tam-form-actions {
    display: flex;
    gap: 15px;
    margin-top: 25px;
}

.tam-submit-btn {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.tam-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
}

.tam-cancel-btn {
    background: #f8f9fa;
    color: #6c757d;
    border: 2px solid #e9ecef;
    padding: 12px 25px;
    border-radius: 10px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    flex: 1;
}

.tam-cancel-btn:hover {
    background: #e9ecef;
    color: #495057;
}

.tam-agent-logo {
    height: 140px;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f2ff 100%);
    display: flex;
    align-items: center;
}

.tam-logo-wrapper {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(255,255,255,0.7);
    backdrop-filter: blur(10px);
    transition: transform 0.3s ease;
}

.tam-agent-card:hover .tam-logo-wrapper {
    transform: scale(1.05);
}

.tam-agent-logo img {
    max-width: 80%;
    max-height: 80%;
    width: auto;
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.1));
}

.tam-agent-logo-placeholder {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
}

.tam-placeholder-icon {
    font-size: 3em;
    color: #667eea;
    opacity: 0.7;
}

.tam-placeholder-icon .dashicons {
    width: 1em;
    height: 1em;
    font-size: 1em;
}

.tam-agent-info {
    padding: 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #ffffff 0%, #fafbff 100%);
}

.tam-agent-name {
    margin: 0 0 15px 0;
    position: relative;
    display: inline-block;
}

.tam-name-text {
    color: #2c3e50;
    font-size: 1.5em;
    font-weight: 700;
    letter-spacing: -0.5px;
    display: block;
}

.tam-name-underline {
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea, #764ba2);
    transition: width 0.4s ease;
    border-radius: 2px;
}

.tam-agent-card:hover .tam-name-underline {
    width: 100%;
}

.tam-agent-rating {
    color: #f39c12;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: rgba(243, 156, 18, 0.1);
    border-radius: 25px;
    width: fit-content;
}

.tam-agent-rating .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

.tam-agent-destinations,
.tam-agent-services,
.tam-featured-tour {
    margin-bottom: 20px;
    font-size: 0.9em;
    color: #555;
    line-height: 1.6;
}

.tam-info-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: #667eea;
    font-weight: 600;
}

.tam-info-header .dashicons {
    width: 16px;
    height: 16px;
    font-size: 16px;
}

.tam-destinations-list,
.tam-services-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.tam-destination-tag,
.tam-service-tag {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 500;
    white-space: nowrap;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

.tam-more-indicator {
    background: #e0e7ff;
    color: #667eea;
    padding: 4px 10px;
    border-radius: 15px;
    font-size: 0.8em;
    font-weight: 500;
    font-style: italic;
}

.tam-agent-actions {
    margin-top: auto;
    padding-top: 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    border-top: 1px solid rgba(102, 126, 234, 0.1);
}

.tam-agent-actions .button {
    flex: 1;
    text-align: center;
    min-width: 100px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    border-radius: 25px;
    padding: 10px 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.tam-agent-actions .button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Pagination */
.tam-pagination {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .tam-page-title {
        font-size: 2.5em;
    }
    
    .tam-page-subtitle {
        font-size: 1.1em;
    }
    
    .tam-page-header {
        padding: 40px 20px 60px;
    }
    
    .tam-agents-container {
        margin-top: -30px;
        padding: 0 15px 30px;
    }
    
    .tam-agents-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .tam-filter-form {
        flex-direction: column;
        align-items: stretch;
    }
    
    .tam-filter-group {
        width: 100%;
    }
    
    .tam-header-decoration {
        display: none;
    }
}

@media (max-width: 480px) {
    .tam-page-title {
        font-size: 2em;
    }
    
    .tam-agent-info {
        padding: 20px;
    }
    
    .tam-agent-actions {
        flex-direction: column;
    }
    
    .tam-agent-actions .button {
        width: 100%;
        margin-bottom: 8px;
    }
}

/* No Agents Message */
.tam-no-agents {
    text-align: center;
    padding: 60px 40px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin: 40px auto;
    max-width: 500px;
}

.tam-no-agents-icon {
    font-size: 4em;
    color: #667eea;
    margin-bottom: 20px;
    opacity: 0.7;
}

.tam-no-agents-icon .dashicons {
    width: 1em;
    height: 1em;
    font-size: 1em;
}

.tam-no-agents h3 {
    color: #2c3e50;
    font-size: 1.8em;
    margin: 0 0 15px 0;
    font-weight: 600;
}

.tam-no-agents p {
    font-size: 1.1em;
    color: #666;
    margin: 0;
    line-height: 1.6;
}

/* Hover Effects */
.tam-agent-card:hover .tam-name-text {
    color: #667eea;
}

.tam-agent-card:hover .tam-card-badge {
    transform: scale(1.1);
}

.tam-agent-card:hover .tam-agent-rating {
    background: rgba(243, 156, 18, 0.2);
    transform: scale(1.05);
}

/* Button Styles */
.button.tam-get-quote {
    background: linear-gradient(45deg, #667eea, #764ba2);
    border: 2px solid transparent;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.button.tam-get-quote::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.button.tam-get-quote:hover::before {
    left: 100%;
}

.button.tam-get-quote:hover {
    background: linear-gradient(45deg, #5a6fd8, #6a4190);
    border-color: transparent;
    color: #fff;
}

/* Featured Tour Styling */
.tam-featured-tour {
    margin-top: 20px;
    padding: 15px;
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    border-radius: 12px;
    border-left: 4px solid #ff9800;
}

.tam-featured-tour strong {
    color: #e65100;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 5px;
}

.tam-featured-tour a {
    color: #f57c00;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.tam-featured-tour a:hover {
    color: #e65100;
    text-decoration: underline;
}

/* Additional animations */
.tam-agent-card {
    animation: fadeInUp 0.6s ease forwards;
    opacity: 0;
    transform: translateY(30px);
}

.tam-agent-card:nth-child(1) { animation-delay: 0.1s; }
.tam-agent-card:nth-child(2) { animation-delay: 0.2s; }
.tam-agent-card:nth-child(3) { animation-delay: 0.3s; }
.tam-agent-card:nth-child(4) { animation-delay: 0.4s; }
.tam-agent-card:nth-child(5) { animation-delay: 0.5s; }
.tam-agent-card:nth-child(6) { animation-delay: 0.6s; }

@keyframes fadeInUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* TAM Popup Styles */
.tam-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
}

.tam-popup-container {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 100%;
    max-height: 90vh;
    overflow: hidden;
    animation: popupSlideIn 0.3s ease-out;
    position: relative;
}

@keyframes popupSlideIn {
    from {
        opacity: 0;
        transform: scale(0.8) translateY(-50px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.tam-popup-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.tam-popup-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.1) 50%, transparent 70%);
    animation: headerShine 3s ease-in-out infinite;
}

@keyframes headerShine {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.tam-popup-title {
    margin: 0;
    font-size: 1.4em;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.tam-popup-close {
    background: none;
    border: none;
    color: white;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
}

.tam-popup-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg) scale(1.1);
}

.tam-popup-content {
    padding: 25px;
    max-height: 70vh;
    overflow-y: auto;
    line-height: 1.6;
    color: #333;
}

/* Different popup types */
.tam-popup-modal .tam-popup-container {
    animation: popupSlideIn 0.3s ease-out;
}

.tam-popup-slide_in .tam-popup-container {
    animation: slideInFromRight 0.4s ease-out;
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    max-width: 400px;
}

@keyframes slideInFromRight {
    from {
        opacity: 0;
        transform: translateX(100%) translateY(-50%);
    }
    to {
        opacity: 1;
        transform: translateX(0) translateY(-50%);
    }
}

.tam-popup-fly_in .tam-popup-container {
    animation: flyIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes flyIn {
    from {
        opacity: 0;
        transform: scale(0.3) rotate(45deg) translateY(-100px);
    }
    to {
        opacity: 1;
        transform: scale(1) rotate(0deg) translateY(0);
    }
}

/* Body class when popup is active */
body.tam-popup-active {
    overflow: hidden;
}

/* Custom width popup support */
.tam-popup-container[style*="width"] {
    margin: 0 auto;
}

/* Responsive popup styles */
@media (max-width: 768px) {
    .tam-popup-overlay {
        padding: 10px;
    }
    
    .tam-popup-container {
        max-width: 100% !important;
        width: 100% !important;
        border-radius: 15px;
    }
    
    .tam-popup-header {
        padding: 15px 20px;
    }
    
    .tam-popup-title {
        font-size: 1.2em;
    }
    
    .tam-popup-content {
        padding: 20px;
    }
    
    .tam-popup-slide_in .tam-popup-container {
        position: fixed;
        right: 10px;
        left: 10px;
        top: 50%;
        transform: translateY(-50%);
        max-width: none;
    }
}

@media (max-width: 480px) {
    .tam-popup-header {
        padding: 12px 15px;
    }
    
    .tam-popup-title {
        font-size: 1.1em;
    }
    
    .tam-popup-content {
        padding: 15px;
    }
    
    .tam-popup-close {
        width: 35px;
        height: 35px;
        font-size: 24px;
    }
}

/* Popup trigger button styles */
.tam-popup-trigger {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.tam-popup-trigger::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.tam-popup-trigger:hover::before {
    left: 100%;
}

.tam-popup-trigger:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
}

/* Services Horizontal Display - Matching Screenshot Design */
.tam-services-horizontal {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
    align-items: center;
}

.tam-service-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: #333;
    padding: 8px 16px;
    border: 2px solid #e9ecef;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tam-service-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.12);
    border-color: #667eea;
}

.tam-service-badge i {
    font-size: 16px;
    color: #667eea;
    flex-shrink: 0;
}

.tam-service-badge span {
    color: #333;
    font-weight: 600;
    white-space: nowrap;
}

/* Specific service icon colors */
.tam-service-badge i.fa-bed {
    color: #e74c3c;
}

.tam-service-badge i.fa-mountain {
    color: #27ae60;
}

.tam-service-badge i.fa-car {
    color: #f39c12;
}

.tam-service-badge i.fa-plane {
    color: #3498db;
}

.tam-service-badge i.fa-train {
    color: #9b59b6;
}

.tam-service-badge i.fa-bus {
    color: #e67e22;
}

.tam-service-badge i.fa-user-tie {
    color: #34495e;
}

.tam-service-badge i.fa-utensils {
    color: #e74c3c;
}

.tam-service-badge i.fa-hiking {
    color: #27ae60;
}

.tam-service-badge i.fa-suitcase {
    color: #667eea;
}

/* No services message styling */
.tam-no-services {
    color: #999;
    font-style: italic;
    font-size: 13px;
    padding: 8px 0;
}

/* Tour display responsive control */
@media (max-width: 768px) {
    .tam-tour-desktop-only {
        display: none !important;
    }
}

/* Completely remove Gold Member label from mobile view */
@media (max-width: 768px) {
    /* Override any CSS that creates Gold Member text */
    .tam-agent-card::after {
        display: none !important;
        content: "" !important;
        visibility: hidden !important;
    }
    
    /* Hide all pseudo elements except plan stamp */
    .tam-agent-card *:not(.tam-mobile-plan-category)::after,
    .tam-agent-card *:not(.tam-mobile-plan-category)::before {
        display: none !important;
        content: "" !important;
    }
    
    /* Ensure plan stamp effects remain visible */
    .tam-mobile-plan-category::after,
    .tam-mobile-plan-category::before {
        display: block !important;
        visibility: visible !important;
    }
    
    /* Hide any bottom positioned elements */
    .tam-agent-card [style*="bottom"],
    .tam-agent-card [class*="bottom"] {
        display: none !important;
    }
    
    /* Force remove any injected content */
    .tam-agent-card {
        overflow: hidden !important;
        position: relative !important;
    }
    
    .tam-agent-card > div:last-child:not(.tam-card-bottom):not(.tam-mobile-row-3) {
        display: none !important;
    }
}

/* Load More Button Styling */
.tam-load-more-container {
    text-align: center;
    margin: 40px 0;
    padding: 20px;
}

.tam-load-more-btn {
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a24 100%);
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
    position: relative;
    overflow: hidden;
}

.tam-load-more-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 107, 0.5);
    background: linear-gradient(135deg, #ff5252 0%, #d84315 100%);
}

.tam-load-more-btn:active {
    transform: translateY(0);
}

.tam-load-more-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.tam-load-more-spinner {
    display: none;
    align-items: center;
    gap: 8px;
}

.tam-load-more-spinner[style*="display: inline-block"],
.tam-load-more-spinner[style*="display: block"] {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
}

.tam-spinner-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: tam-spin 1s ease-in-out infinite;
}

@keyframes tam-spin {
    to { transform: rotate(360deg); }
}

.tam-pagination-info {
    margin-top: 15px;
    color: white;
    font-size: 14px;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* Mobile responsive for Load More */
@media (max-width: 768px) {
    .tam-load-more-btn {
        padding: 12px 30px;
        font-size: 14px;
        width: 100%;
        max-width: 280px;
    }
    
    .tam-load-more-container {
        margin: 30px 0;
        padding: 15px;
    }
}
