/* Place Details Panel Styles - Google Maps style */

.place-details-panel {
    position: fixed;
    right: -400px;
    top: 0;
    width: 400px;
    height: 100%;
    background: rgba(30, 30, 30, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-left: 1px solid rgba(255, 255, 255, 0.1);
    z-index: 1000;
    transition: right 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.place-details-panel.open {
    right: 0;
    box-shadow: -4px 0 20px rgba(0, 0, 0, 0.3);
}

/* Panel Header */
.panel-header {
    padding: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    min-height: 80px;
}

.panel-close-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #e8eaed;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.panel-close-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.05);
}

.place-header-info {
    padding-right: 60px; /* Space for close button */
}

.place-title {
    font-size: 24px;
    font-weight: 400;
    color: #e8eaed;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

.place-subtitle {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    color: #9aa0a6;
}

.place-secondary-name {
    color: #9aa0a6;
}

.place-type {
    padding: 4px 12px;
    background: rgba(0, 116, 255, 0.2);
    border: 1px solid rgba(0, 116, 255, 0.3);
    border-radius: 12px;
    font-size: 12px;
    color: #8ab4f8;
}

/* Panel Tabs */
.panel-tabs {
    display: flex;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.03);
}

.tab-btn {
    flex: 1;
    padding: 16px;
    background: none;
    border: none;
    color: #9aa0a6;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
}

.tab-btn:hover {
    color: #e8eaed;
    background: rgba(255, 255, 255, 0.05);
}

.tab-btn.active {
    color: #8ab4f8;
}

.tab-btn.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #8ab4f8;
}

/* Panel Content */
.panel-content {
    flex: 1;
    overflow-y: auto;
    padding: 0;
}

.tab-content {
    display: none;
    padding: 20px;
}

.tab-content.active {
    display: block;
}

/* Detail Sections */
.detail-section {
    margin-bottom: 24px;
}

.detail-section:last-child {
    margin-bottom: 0;
}

.detail-item {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
}

.detail-item:last-child {
    margin-bottom: 0;
}

.detail-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    color: #9aa0a6;
    margin-top: 2px;
}

.detail-content {
    flex: 1;
}

.detail-label {
    font-size: 12px;
    color: #9aa0a6;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-value {
    font-size: 14px;
    color: #e8eaed;
    line-height: 1.5;
}

.detail-value a {
    color: #8ab4f8;
    text-decoration: none;
}

.detail-value a:hover {
    text-decoration: underline;
}

.detail-sub {
    font-size: 13px;
    color: #9aa0a6;
    margin-top: 4px;
}

/* Hours formatting */
.hours-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hours-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.hours-day {
    color: #9aa0a6;
    min-width: 80px;
}

.hours-time {
    color: #e8eaed;
}

/* Reviews placeholder */
.reviews-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.reviews-placeholder svg {
    margin-bottom: 16px;
}

.reviews-placeholder p {
    color: #9aa0a6;
    font-size: 14px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .place-details-panel {
        width: 100%;
        right: -100%;
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .place-details-panel.open {
        right: 0;
    }
}

/* Scrollbar styling */
.panel-content::-webkit-scrollbar {
    width: 8px;
}

.panel-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
}

.panel-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.panel-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Loading state */
.detail-section.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

.detail-section.loading::after {
    content: '';
    width: 32px;
    height: 32px;
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-top-color: #8ab4f8;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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