/* Favorite Button Styles */
.favorite-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}
.favorite-btn-inline {
    position: absolute;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
    z-index: 10;
}
.favorite-btn-inline:hover {
    background: #f8f8f8;
    border-color: #e74c3c;
}
/* SP (Mobile) - Position heart and checkbox in top right */
@media (max-width: 768px) {
    .sub.sp .room_select {
        position: absolute;
        top: 5px;
        right: 5px;
        display: flex;
        gap: 5px;
        z-index: 10;
    }
    .sub.sp .room_select .room_check_label {
        margin: 0;
    }
    .sub.sp .favorite-btn-inline {
        position: relative;
        top: 0;
        right: 0;
    }
}
/* PC - Position heart below checkbox */
@media (min-width: 769px) {
    .sub.pc .select {
        width: 80px;
        display: -webkit-box;
        display: -webkit-flex;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: center;
        -webkit-justify-content: center;
        -ms-flex-pack: center;
        justify-content: center;
        padding: 8px 0;
    }
    .sub.pc .favorite-btn-inline {
        position: absolute;
    }
    .sub.pc .room_check_input {
        width: 18px;
        height: 18px;
        margin: 0;
    }
}
.favorite-btn:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}
.favorite-btn .heart-icon {
    width: 24px;
    height: 24px;
    stroke: #e74c3c;
    fill: none;
    transition: all 0.3s ease;
}
.favorite-btn-inline .heart-icon {
    width: 18px;
    height: 18px;
    stroke: #e74c3c;
    fill: none;
    transition: all 0.3s ease;
}
.favorite-btn.active .heart-icon,
.favorite-btn-inline.active .heart-icon {
    fill: #e74c3c;
    stroke: #e74c3c;
}
.favorite-btn.active,
.favorite-btn-inline.active {
    animation: heartbeat 0.3s ease;
}
.favorite-btn-inline.active {
    background: #fff0f0;
    border-color: #e74c3c;
}
@keyframes heartbeat {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}
/* Badge styles */
.favorites-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #e74c3c;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: bold;
}
/* SP menu badge - inline */
.favorites-badge-inline {
    position: static !important;
    display: inline-flex !important;
    margin-left: 5px;
    vertical-align: middle;
}
/* Detail page title wrapper with favorite button */
.page_ttl_wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}
.page_ttl_wrapper .page_ttl {
    margin: 0;
    flex: 1;
}
/* Detail page favorite button */
.favorite-btn-detail {
    flex-shrink: 0;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #ddd;
    border-radius: 50%;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}
.favorite-btn-detail:hover {
    background: #f8f8f8;
    border-color: #e74c3c;
    transform: scale(1.05);
}
.favorite-btn-detail .heart-icon {
    width: 24px;
    height: 24px;
}
.favorite-btn-detail.active {
    background: #fff0f0;
    border-color: #e74c3c;
    animation: heartbeat 0.3s ease;
}
/* Mobile responsive for detail page */
@media (max-width: 768px) {
    .page_ttl_wrapper {
        gap: 8px;
    }
    .favorite-btn-detail {
        width: 36px;
        height: 36px;
    }
    .favorite-btn-detail .heart-icon {
        width: 20px;
        height: 20px;
    }
}
/* Bulk inquiry bar */
.pageFavorites .fixinquiry {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 20px;
    background: rgba(38, 38, 38, 0.95);
    color: #fff;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.15);
    transform: translateY(100%);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.3s ease, opacity 0.3s ease;
    z-index: 1000;
}
.pageFavorites .fixinquiry.is-active {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.pageFavorites .fixinquiry-action a {
    display: inline-flex;
    align-items: center;
    padding: 10px 18px;
    background: #cbad62;
    color: #fff;
    font-weight: bold;
    text-decoration: none;
}
.pageFavorites .fixinquiry-action a:hover {
    background: #b89952;
}
.pageFavorites .fixinquiry-action a .fixinquiry_action-sub {
    margin-left: 6px;
    font-size: 12px;
}
.pageFavorites .fixinquiry-attention {
    font-size: 11px;
    line-height: 1.4;
}
.pageFavorites .fixinquiry-info {
    font-size: 14px;
}
.pageFavorites .fixinquiry-info-count {
    font-weight: bold;
    font-size: 18px;
    margin: 0 4px;
}
/* SP room layout */
.pageFavorites .sub.sp .room {
    border-bottom: 1px solid #e0e0e0;
}
.pageFavorites .room-layout-sp {
    display: flex;
    align-items: stretch;
    gap: 0;
}
.pageFavorites .room-layout-sp .select {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}
.pageFavorites .room-layout-sp .content {
    flex: 1;
}
.pageFavorites .room-layout-sp .remove {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
}
.pageFavorites .sub.sp .room::before {
    display: none !important;
}
.pageFavorites .remove-btn-sp {
    width: 24px;
    height: 30px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 26.4px;
    line-height: 0.85;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.pageFavorites .remove-btn-sp:hover {
    color: #e74c3c;
}
@media (max-width: 768px) {
    .pageFavorites .fixinquiry {
        flex-direction: column;
        gap: 8px;
        text-align: center;
        padding: 16px 14px;
    }
    .pageFavorites .fixinquiry-action a {
        width: 100%;
        justify-content: center;
    }
    .pageFavorites .sub.sp .room .btn {
        display: none;
    }
}
@media (min-width: 769px) {
    .pageFavorites .room-controls-sp {
        display: none;
    }
}
/* Floating favorites button */
.favorites-floating-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #e74c3c;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    display: none;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    z-index: 9999;
    box-shadow: 0 4px 12px rgba(231, 76, 60, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
}
.favorites-floating-btn.show {
    display: flex;
}
.favorites-floating-btn:hover {
    background: #c0392b;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(231, 76, 60, 0.5);
}
.favorites-floating-btn .heart-emoji {
    font-size: 18px;
    animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}
@media (max-width: 768px) {
    .favorites-floating-btn {
        bottom: 15px;
        right: 15px;
        padding: 10px 16px;
        font-size: 14px;
    }
    .favorites-floating-btn .heart-emoji {
        font-size: 16px;
    }
    /* Detail page only - move up to avoid overlapping */
    .favorites-floating-btn.is-detail-page {
        bottom: 80px;
    }
}
/* Toast message */
.favorite-toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: #ffffff;
    color: #333;
    padding: 12px 24px;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    z-index: 10000;
    opacity: 0;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border: 1px solid #e0e0e0;
    pointer-events: none;
    white-space: nowrap;
}
@media (max-width: 768px) {
    .favorite-toast {
        font-size: 13px;
        padding: 10px 20px;
        gap: 6px;
    }
}
.favorite-toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.favorite-toast-icon {
    font-size: 16px;
}
.favorite-toast-count {
    background: #e74c3c;
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: bold;
    min-width: 24px;
    text-align: center;
}
.pageFavorites .room_check_input {
    width: 21.6px;
    height: 21.6px;
}
.pageFavorites .remove-btn-sp {
    width: 24px;
    height: 30px;
    font-size: 26.4px;
}
/* Building controls */
.building-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 16px;
    background: #f8f8f8;
    border-bottom: 1px solid #e0e0e0;
}
.building_check_label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 33.6px;
    height: 33.6px;
    cursor: pointer;
}
.building_check_input {
    width: 21.6px;
    height: 21.6px;
    margin: 0;
    cursor: pointer;
}
.building-remove-btn {
    width: 24px;
    height: 30px;
    border: none;
    background: transparent;
    color: #666;
    font-size: 26.4px;
    line-height: 0.85;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.building-remove-btn:hover {
    color: #e74c3c;
}
