/* Legacy Admin Styles */
.wpkunaki_import tr td input,
.wpkunaki_import tr td select {
    font-size: 10px;
}

.wpkunaki_import .alt {
    background-color: #ccc;
}

#wpkunaki_table {
    max-height: 300px;
    overflow: auto;
}

#wpkunaki_table label {
    cursor: pointer;
}

#wpkunaki_table th {
    text-align: left;
}

#wpkunaki_table td {
    padding: 3px;
    border: #cccccc solid 1px;
}

#wpkunaki_table tr.selected {
    background-color: #eeeeff;
}

#wpkunaki_table input {
    font-family: Arial !important;
    font-size: 12px;
}

/* Icon Styles */
i.wpkunaki-icon,
.mce-i-wpkunaki-icon {
    background-image: url(wpkunaki-icon.png);
}

button#TB_closeWindowButton .screen-reader-text {
    display: none;
}

/* Split View Layout */
.wpkunaki-split-view {
    display: flex;
    flex-direction: column;
    margin: 20px 0;
    gap: 20px;
}

.wpkunaki-list-container {
    width: 100%;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 1;
}

.wpkunaki-map-container {
    width: 100%;
    height: 400px;
}

/* Main Table Styles */
.wpkunaki-frontend {
    width: 100%;
    border: none;
    border-collapse: separate;
    border-spacing: 0 16px;
    background: transparent;
    position: relative;
    display: table !important;
    visibility: visible !important;
    opacity: 1 !important;
    z-index: 1;
    z-index: 2;
}

.wpkunaki-frontend thead {
    display: none;
}

.wpkunaki-frontend tr {
    background: white;
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    transition: all 0.2s ease;
    display: table-row !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.wpkunaki-frontend tr:hover {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.wpkunaki-frontend td {
    padding: 24px;
    border: none;
    vertical-align: top;
    background: white;
    color: #444;
}

.wpkunaki-frontend td:first-child {
    width: 160px;
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.wpkunaki-frontend td:nth-child(2) {
    padding-right: 48px;
}

.wpkunaki-frontend td:last-child {
    width: 200px;
    text-align: right;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

/* Profile Image Styles */
.wpkunaki-profile-image {
    width: 160px;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin-bottom: 12px;
}

.wpkunaki-badge-image {
    max-width: 300px;
    border-radius: 4px;
    margin: 8px 0;
    display: inline-block;
}

/* Name and Title Styles */
.wpkunaki-name {
    color: #2557a7;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    display: block;
    margin-bottom: 4px;
}

.wpkunaki-name:hover {
    text-decoration: underline;
}

.wpkunaki-title {
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
}

/* Address Styles */
.wpkunaki-address {
    color: #666;
    line-height: 1.5;
    font-size: 14px;
}

/* Contact Information Styles */
.wpkunaki-frontend td:last-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-end;
    gap: 16px;
}

.wpkunaki-phone {
    text-align: center;
    width: 100%;
    margin: 8px 0 12px;
}

.phone-link {
    color: #333;
    font-size: 20px;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-block;
}

.phone-link:hover {
    color: #2557a7;
    text-decoration: none;
}

.wpkunaki-buttons {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

/* Button Styles */
.wpkunaki-button {
    display: block;
    padding: 12px;
    border-radius: 4px;
    text-align: center;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    font-size: 14px;
}

.wpkunaki-button-email, .wpkunaki-button-website {
    background: white;
    border: 1px solid #2557a7;
    color: #2557a7;
}

.wpkunaki-button-view {
    background: #2557a7;
    border: 1px solid #2557a7;
    color: white;
}

/* Location Search Styles */
.wpkunaki-location-container {
    margin: 20px 0;
    text-align: center;
}

.wpkunaki-current-location {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.wpkunaki-current-location p {
    margin: 0 0 10px;
    color: #666;
    font-size: 14px;
}

.wpkunaki-location-link {
    display: inline-block;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 4px;
    transition: all 0.2s ease;
    font-weight: 500;
}

.wpkunaki-search-location, .wpkunaki-location-button {
    background: #2557a7;
    color: white !important;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    font-weight: 500;
    display: inline-block;
    min-width: 200px;
    text-align: center;
}

.wpkunaki-search-location:hover, .wpkunaki-location-button:hover {
    background: #1d4585;
    color: white !important;
    text-decoration: none;
}

/* Center align dropdowns and buttons */
.wpkunaki-dropdown-container {
    text-align: center;
    margin: 20px 0;
}

.wpkunaki-button-container {
    text-align: center;
    margin: 20px 0;
}

#wpkunaki_country, #wpkunaki_state {
    display: inline-block;
    margin: 10px auto;
    min-width: 200px;
    text-align: center;
}

.wpkunaki-clear-location {
    color: #dc3545 !important;
    border: 1px solid #dc3545;
}

.wpkunaki-clear-location:hover {
    background: #dc3545;
    color: white !important;
    text-decoration: none;
}

/* Map Styles */
#map-canvas {
    width: 100%;
    height: 100%;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 1;
}

.wpkunaki-marker {
    background: transparent;
    border: none;
}

.marker-number {
    background: #0073aa;
    color: white;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    font-size: 14px;
}

/* Scrollbar Styles */
.wpkunaki-list-container::-webkit-scrollbar {
    width: 8px;
}

.wpkunaki-list-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.wpkunaki-list-container::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.wpkunaki-list-container::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* State Styles */
.wpkunaki-result-row.highlighted {
    background-color: #e6f3f8;
    transition: background-color 0.3s ease;
}

/* Responsive Layout */
@media (max-width: 1024px) {
    .wpkunaki-split-view {
        flex-direction: column;
    }
    
    .wpkunaki-map-container {
        position: relative;
        height: 400px;
        width: 100%;
        max-width: 100%;
        top: 0;
    }
    
    .wpkunaki-list-container {
        width: 100%;
    }
}