/* Property Tracking Header Elements */
.vh-header-tracking {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.vh-tracking-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 8px;
    border-radius: 8px;
    position: relative;
}

.vh-tracking-item:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.vh-tracking-icon {
    position: relative;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    font-size: 18px;
}

.vh-tracking-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 11px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 18px;
}

.vh-tracking-label {
    font-size: 12px;
    color: #666;
    margin-top: 4px;
    text-align: center;
    line-height: 1.2;
}

/* Contact Button */
.vh-contact-button {
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
}

.vh-contact-button:hover {
    background-color: #c0392b;
    color: white;
    text-decoration: none;
}

.vh-contact-icon {
    font-size: 16px;
}

/* Section Header */
.jre-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.jre-section-header .jre-section-title {
    margin: 0;
}

/* Favorite Toggle Button */
.vh-favorite-toggle {
    background: none;
    border: 2px solid #ddd;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.vh-favorite-toggle:hover {
    border-color: #e74c3c;
    color: #e74c3c;
}

.vh-favorite-toggle.active {
    border-color: #e74c3c;
    color: #e74c3c;
}

.vh-favorite-toggle i {
    font-size: 18px;
}

/* Archive Page Favorite Button */
.unit-actions-cell .favorite-unit-btn {
    background: #ebebeb !important;
    border: solid 1px #ebebeb !important;
    font-size: 20px;
    cursor: pointer;
    width: 25px !important;
    height: 25px !important;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(212, 212, 212, 0.3);
    transition: all 0.2s ease;
    font-weight: bold;
    margin: 0;
}

.favorite-unit-btn:hover {
    border-color: #ff8787;
    color: #eefa80 !important;
    background: #ff8787 !important;
    border: solid 1px #ff8787 !important;
    box-shadow: 0 2px 8px rgb(245, 255, 150);
}

.favorite-unit-btn.active {
    border-color: #ff8787;
    color: #eefa80 !important;
    background: #ff8787 !important;
    border: solid 1px #ff8787 !important;
    box-shadow: 0 2px 8px rgb(245, 255, 150);
}

.favorite-unit-btn i {
    font-size: 16px;
}
td.unit-actions-cell {
    text-align: -webkit-center;
}
/* Property Modal - Full Screen */
.vh-property-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    background: #fff;
    animation: fadeIn 0.3s ease-out;
    display: block;
}

.vh-property-modal-overlay {
    display: none;
}

.vh-property-modal .container-search-popup {
    position: relative;
    width: 100%;
    height: 100%;
    background: #fff;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.vh-property-modal .element-popup-head {
    background: #fff;
    color: #333;
    padding: 20px 32px;
    position: relative;
    border-bottom: 1px solid #e9ecef;
    flex-shrink: 0;
}

.vh-property-modal .element-popup-title {
    font-size: 24px;
    font-weight: 600;
    margin: 0;
    color: #333;
}

.vh-property-modal .element-popup-close {
    position: absolute;
    top: 50%;
    right: 32px;
    transform: translateY(-50%);
    background: #fff;
    border: none;
    color: #e74c3c;
    font-size: 20px;
    cursor: pointer;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
    transition: all 0.2s ease;
    font-weight: bold;
    margin: 0;
}

.vh-property-modal .element-popup-close:before {
    content: "×";
    line-height: 1;
}

.vh-property-modal .element-popup-close:hover {
    background: #f8f9fa;
    color: #c0392b;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.vh-property-modal-body {
    flex: 1;
    overflow-y: auto;
    background: #f8f9fa;
}

/* Property Modal List Layout */
.vh-property-modal .vh-property-grid {
    padding: 32px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Property Modal Card - Horizontal Layout */
.vh-property-modal .vh-property-card {
    background: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    margin-bottom: 16px;
    display: flex;
    align-items: stretch;
    min-height: 160px;
}

.vh-property-modal .vh-property-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    border-color: #007bff;
}

/* Property Modal Image - Fixed Width */
.vh-property-modal .vh-property-image {
    position: relative;
    width: 200px;
    min-width: 200px;
    height: auto;
    overflow: hidden;
    flex-shrink: 0;
}

.vh-property-modal .vh-property-image img {
    width: auto;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.vh-property-modal .vh-property-card:hover .vh-property-image img {
    transform: scale(1.02);
}

/* Property Modal Badges */
.vh-property-modal .vh-property-badges {
    position: absolute;
    top: 8px;
    left: 8px;
    display: flex;
    gap: 4px;
    z-index: 2;
}

.vh-property-modal .vh-badge {
    padding: 2px 6px;
    font-size: 10px;
    font-weight: 500;
    border-radius: 3px;
    color: #fff;
}

.vh-property-modal .vh-badge-rent {
    background: #007bff;
}

.vh-property-modal .vh-badge-new {
    background: #ff6b35;
}

/* Modal Remove Button - Top right corner of entire card */
.vh-property-modal .vh-property-remove-btn {
    position: absolute;
    top: 1px;
    right: 1px;
    width: 28px;
    height: 28px;
    background: #e74c3c;
    border: 2px solid #fff;
    border-radius: 50%;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10;
    box-shadow: 0 3px 10px rgba(220, 53, 69, 0.4);
}

.vh-property-modal .vh-property-remove-btn:hover {
    background: #585354;
    color: #fff;
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.5);
}

.vh-property-modal .vh-property-remove-btn:active {
    transform: scale(0.9);
    box-shadow: 0 2px 6px rgba(220, 53, 69, 0.4);
}

/* Property Modal Content - Horizontal Layout */
.vh-property-modal .vh-property-content {
    flex: 1;
    padding: 16px 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Property Modal Header - Main Info */
.vh-property-modal .vh-property-header {
    margin-bottom: 8px;
}

.vh-property-modal .vh-property-title {
    margin: 0 0 4px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.3;
}

.vh-property-modal .vh-property-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.vh-property-modal .vh-property-title a:hover {
    color: #007bff;
}

.vh-property-modal .vh-property-type {
    font-size: 11px;
    color: #007bff;
    background: #e7f3ff;
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-block;
    margin-right: 8px;
}

/* Property Modal Main Info - Horizontal Layout */
.vh-property-modal .vh-property-details {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 8px;
}

.vh-property-modal .vh-price-rent {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.vh-property-modal .vh-price-value {
    font-size: 20px;
    font-weight: 700;
    color: #dc3545;
}

.vh-property-modal .vh-price-label {
    font-size: 14px;
    color: #666;
}

.vh-property-modal .vh-property-layout {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: #666;
}

.vh-property-modal .vh-layout-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

.vh-property-modal .vh-layout-value {
    font-weight: 500;
    color: #333;
}

/* Property Modal Location & Details */
.vh-property-modal .vh-property-location {
    font-size: 13px;
    color: #666;
    margin-bottom: 4px;
    line-height: 1.4;
}

.vh-property-modal .vh-property-station {
    font-size: 12px;
    color: #888;
    margin-bottom: 8px;
}

/* Property Modal Meta Info */
.vh-property-modal .vh-property-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    color: #999;
}

/* Property Modal Actions - Right Side */
.vh-property-modal .vh-property-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    padding: 16px 20px 16px 0;
    min-width: 200px;
    gap: 8px;
}

.vh-property-modal .vh-btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    white-space: nowrap;
}

.vh-property-modal .vh-btn-primary {
    background: #ffc107;
    color: #333;
    border: 1px solid #ffc107;
}

.vh-property-modal .vh-btn-primary:hover {
    background: #ffb300;
    border-color: #ffb300;
    color: #333;
    text-decoration: none;
}

.vh-property-modal .vh-property-date {
    font-size: 11px;
    color: #999;
    text-align: right;
}

/* Modal Contact Button */
.vh-property-modal .vh-contact-btn {
    background: #ffc107;
    color: #333;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid #ffc107;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.vh-property-modal .vh-contact-btn:hover {
    background: #ffb300;
    border-color: #ffb300;
    color: #333;
    text-decoration: none;
}

/* Modal Empty State */
.vh-property-modal .vh-empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #666;
    animation: fadeIn 0.5s ease-in;
}

.vh-property-modal .vh-empty-icon {
    font-size: 48px;
    color: #ddd;
    margin-bottom: 16px;
    animation: pulse 2s infinite;
}

.vh-property-modal .vh-empty-state h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    color: #333;
}

.vh-property-modal .vh-empty-state p {
    margin: 0;
    font-size: 14px;
    color: #666;
}

/* Animations */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}

/* Modal Responsive Design */
@media (max-width: 768px) {
    .vh-property-modal .vh-property-grid {
        padding: 16px;
    }
    
    .vh-property-modal .vh-property-card {
        flex-direction: column;
        min-height: auto;
    }
    
    .vh-property-modal .vh-property-image {
        width: 100%;
        height: 180px;
    }
    
    .vh-property-modal .vh-property-content {
        padding: 16px;
    }
    
    .vh-property-modal .vh-property-actions {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 16px;
        min-width: auto;
        border-top: 1px solid #eee;
    }
    
    .vh-property-modal .vh-property-details {
        flex-direction: column;
        gap: 8px;
    }
    
    .vh-property-modal .vh-property-layout {
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .vh-property-modal .element-popup-head {
        padding: 16px 20px;
    }
    
    .vh-property-modal .element-popup-title {
        font-size: 18px;
    }
    
    .vh-property-modal .element-popup-close {
        right: 20px;
        width: 36px;
        height: 36px;
        font-size: 24px;
    }
    
    .vh-property-modal .vh-property-grid {
        padding: 12px;
    }
    
    .vh-property-modal .vh-property-card {
        margin-bottom: 12px;
    }
    
    .vh-property-modal .vh-property-remove-btn {
        top: 8px;
        right: 8px;
        width: 26px;
        height: 26px;
        font-size: 12px;
    }
    
    .vh-property-modal .vh-property-title {
        font-size: 16px;
    }
    
    .vh-property-modal .vh-price-value {
        font-size: 18px;
    }
    
    .vh-property-modal .vh-property-actions {
        flex-direction: column;
        gap: 8px;
        align-items: stretch;
    }
    
    .vh-property-modal .vh-btn, .vh-property-modal .vh-contact-btn {
        width: 100%;
        text-align: center;
    }
}

.vh-property-image {
    width: auto;
    height: 60px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
}


.vh-property-type-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: 500;
}

.vh-property-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.vh-property-info h4 {
    margin: 0 0 8px 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
}

.vh-property-info h4 a {
    color: #333;
    text-decoration: none;
}

.vh-property-info h4 a:hover {
    color: #e74c3c;
}

.vh-property-actions {
    display: flex;
    gap: 12px;
    align-items: center;
}

.vh-property-view {
    background-color: #e74c3c;
    color: white;
    padding: 6px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.vh-property-view:hover {
    background-color: #c0392b;
    color: white;
    text-decoration: none;
}

.vh-property-remove {
    background-color: #f8f9fa;
    color: #666;
    border: 1px solid #ddd;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.vh-property-remove:hover {
    background-color: #e74c3c;
    color: white;
    border-color: #e74c3c;
}

/* Responsive Design */
@media (max-width: 768px) {
    .vh-header-tracking {
        gap: 12px;
    }
    
    .vh-tracking-item {
        padding: 6px;
    }
    
    .vh-tracking-label {
        font-size: 10px;
    }
    
    .vh-contact-button {
        padding: 10px 16px;
        font-size: 13px;
    }
    
    .jre-section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .vh-property-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .vh-property-item {
        flex-direction: column;
        gap: 12px;
    }
    
    .vh-property-image {
        width: 100%;
        height: 120px;
    }
    
    .vh-property-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .vh-property-view,
    .vh-property-remove {
        text-align: center;
    }
}

/* Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.vh-property-modal-content {
    animation: fadeIn 0.3s ease;
}

/* Room Favorite Container */
.room-favorite-container {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

/* Empty state */
.vh-property-list:empty::after {
    content: 'データがありません。';
    display: block;
    text-align: center;
    color: #666;
    padding: 40px 20px;
    font-style: italic;
} 