/* Mobile Place Detail Page Styles */

@keyframes placeFadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.place-reveal {
    animation: placeFadeUp 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.place-reveal-delay-1 { animation-delay: 0.06s; }
.place-reveal-delay-2 { animation-delay: 0.12s; }
.place-reveal-delay-3 { animation-delay: 0.18s; }
.place-reveal-delay-4 { animation-delay: 0.24s; }

/* Hero Card */
.place-hero-card {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e9f2;
    background: #ffffff;
}

body.dark-mode-active .place-hero-card {
    background: linear-gradient(155deg, #132746 0%, #0F1C2F 64%, #0d1829 100%);
    border-color: #1B283B;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.26);
}

.place-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 14px;
}

.place-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 500;
    background: #f4f7fb;
    color: #141515;
    border: 1px solid #e1e6ef;
    transition: transform 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

body.dark-mode-active .place-back-btn {
    background: rgba(12, 22, 36, 0.65);
    color: #cbd7e3;
    border-color: rgba(255, 255, 255, 0.1);
}

.place-back-btn:hover {
    transform: translateX(2px);
    border-color: #1E74FD;
    color: #ffffff;
}

.place-type-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 600;
    background: rgba(29, 204, 112, 0.15);
    color: #1DCC70;
    border: 1px solid rgba(29, 204, 112, 0.28);
}

.place-head {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.place-avatar-box {
    width: 104px;
    height: 104px;
    border-radius: 22px;
    overflow: hidden;
    padding: 4px;
    background: linear-gradient(135deg, #1E74FD 0%, #1DCC70 100%);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.place-avatar-box img,
.place-avatar-fallback {
    width: 100%;
    height: 100%;
    border-radius: 18px;
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0F1C2F;
    color: #5fa0ff;
    font-size: 36px;
}

.place-title {
    font-size: 18px;
    font-weight: 800;
    line-height: 1.45;
    margin-bottom: 4px;
    color: #141515;
}

body.dark-mode-active .place-title {
    color: #ffffff;
}

.place-location-sub {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 12px;
    color: #8195a6;
    margin-bottom: 12px;
}

.place-location-sub i {
    color: #1E74FD;
}

.place-hero-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid #e5e9f2;
}

body.dark-mode-active .place-hero-actions {
    border-top-color: rgba(255, 255, 255, 0.08);
}

.place-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 14px;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 600;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.place-action-btn:hover {
    transform: translateY(-1px);
}

/* Info & Map Cards */
.place-card {
    border-radius: 14px;
    border: 1px solid #e5e9f2;
    overflow: hidden;
}

body.dark-mode-active .place-card {
    background: #0F1C2F;
    border-color: #1B283B;
}

.place-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e9f2;
    font-size: 14px;
    font-weight: 700;
    color: #141515;
}

body.dark-mode-active .place-card-header {
    border-bottom-color: #1B283B;
    color: #ffffff;
}

.place-card-header-title {
    display: flex;
    align-items: center;
    gap: 8px;
}

.place-card-header-title i {
    color: #1E74FD;
    font-size: 16px;
}

.place-info-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.place-info-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-bottom: 1px solid #e5e9f2;
}

body.dark-mode-active .place-info-row {
    border-bottom-color: #1B283B;
}

.place-info-row:last-child {
    border-bottom: 0;
}

.place-info-key {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: #8195a6;
    flex-shrink: 0;
}

.place-info-key i {
    color: #1E74FD;
    font-size: 15px;
}

.place-info-val {
    font-size: 13px;
    font-weight: 600;
    color: #141515;
    text-align: left;
    line-height: 1.7;
}

body.dark-mode-active .place-info-val {
    color: #ffffff;
}

.place-map-frame {
    height: 230px;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

/* Doctors List & Nearby Places */
.place-doctor-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 12px;
    flex-shrink: 0;
}

.place-doctor-sub {
    font-size: 11px;
    color: #8195a6;
    margin-top: 2px;
}

.place-related-card {
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #e5e9f2;
    height: 100%;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

body.dark-mode-active .place-related-card {
    background: #0F1C2F;
    border-color: #1B283B;
}

.place-related-card:hover {
    transform: translateY(-2px);
    border-color: rgba(30, 116, 253, 0.45);
}

.place-related-media {
    height: 110px;
    background: #13233b;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.place-related-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.place-related-media i {
    font-size: 30px;
    color: #5fa0ff;
}

.place-related-title {
    font-size: 12px;
    font-weight: 700;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-bottom: 4px;
}

.place-related-title a {
    color: inherit;
}

.place-related-meta {
    font-size: 11px;
    color: #1DCC70;
    font-weight: 600;
}

@media (prefers-reduced-motion: reduce) {
    .place-reveal {
        animation: none;
    }

    .place-back-btn,
    .place-action-btn,
    .place-related-card {
        transition: none;
    }
}
