/* Single Dentist Page Styles - Redesigned with Centered Layout */
.single-dentist-container {
    background: #f8f9fa;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Hero Section with Centered Image */
.dentist-hero {
    background: linear-gradient(135deg, #2c5aa0, #1e3d6f);
    color: white;
    padding: 60px 0;
    text-align: center;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.dentist-title {
    font-size: 3rem;
    margin-bottom: 15px;
    color: white;
    font-weight: 700;
}

.dentist-specialty {
    font-size: 1.4rem;
    opacity: 0.9;
    margin-bottom: 40px;
    font-weight: 300;
}

.dentist-main-image {
    display: inline-block;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.3);
    border: 5px solid rgba(255, 255, 255, 0.2);
    max-width: 400px;
    margin: 0 auto;
}

.dentist-main-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Main Content Section */
.dentist-content-section {
    padding: 60px 0;
}

/* Two Column Layout */
.dentist-info-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 40px;
}

.info-column-left,
.info-column-right {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

/* Info Cards */
.info-card {
    background: white;
    border-radius: 16px;
    padding: 30px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid #e9ecef;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.info-card h2 {
    color: #2c5aa0;
    margin-bottom: 25px;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}

.info-card h2 i {
    color: #2c5aa0;
    font-size: 1.3rem;
}

/* Contact Card */
.contact-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
    transition: background 0.3s ease;
}

.contact-item:hover {
    background: #e9ecef;
}

.contact-item i {
    color: #2c5aa0;
    font-size: 1.2rem;
    margin-top: 3px;
    min-width: 20px;
}

.contact-item strong {
    display: block;
    color: #333;
    margin-bottom: 5px;
    font-weight: 600;
}

.contact-link {
    color: #2c5aa0;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: #1e3d6f;
    text-decoration: underline;
}

.address-text {
    color: #666;
    line-height: 1.5;
}

/* Services Card */
.services-list {
    display: grid;
    gap: 12px;
}

.service-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.service-item:hover {
    background: #e9ecef;
    transform: translateX(5px);
}

.service-item i {
    color: #28a745;
    font-size: 1.1rem;
}

.service-item span {
    color: #333;
    font-weight: 500;
}

/* Emergency Card */
.emergency-card {
    background: linear-gradient(135deg, #fff5f5, #ffe6e6);
    border-left: 5px solid #dc3545;
}

.emergency-content {
    text-align: center;
}

.emergency-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: #28a745;
    font-weight: 600;
}

.emergency-hours {
    margin: 15px 0;
    color: #666;
}

.emergency-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #dc3545;
    color: white;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.3);
}

.emergency-button:hover {
    background: #c82333;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(220, 53, 69, 0.4);
}

/* Advertisement Integration */
.ad-integration {
    margin-bottom: 30px;
}

.ad-banner {
    background: white;
    border-radius: 16px;
    padding: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 2px solid #e9ecef;
    transition: all 0.3s ease;
}

.ad-banner:hover {
    border-color: #2c5aa0;
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.ad-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 15px;
    transition: transform 0.3s ease;
}

.ad-banner:hover .ad-image {
    transform: scale(1.02);
}

.ad-text {
    padding: 0 15px 10px;
}

.ad-text h3 {
    color: #2c5aa0;
    margin-bottom: 8px;
    font-size: 1.2rem;
    font-weight: 600;
}

.ad-text p {
    color: #666;
    line-height: 1.5;
    margin: 0;
    font-size: 0.95rem;
}

/* Map Card */
.dentist-map {
    height: 350px;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    border: 2px solid #e9ecef;
}

.map-actions {
    text-align: center;
}

.directions-button {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #2c5aa0;
    color: white;
    padding: 12px 25px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
}

.directions-button:hover {
    background: #1e3d6f;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 90, 160, 0.4);
}

/* Quick Actions Card */
.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.action-button {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 15px 20px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.phone-action {
    background: #28a745;
    color: white;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.phone-action:hover {
    background: #218838;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.website-action {
    background: #2c5aa0;
    color: white;
    box-shadow: 0 4px 15px rgba(44, 90, 160, 0.3);
}

.website-action:hover {
    background: #1e3d6f;
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 90, 160, 0.4);
}

.map-action {
    background: #f8f9fa;
    color: #333;
    border: 2px solid #ddd;
}

.map-action:hover {
    background: #e9ecef;
    border-color: #2c5aa0;
    color: #2c5aa0;
    transform: translateY(-2px);
}

.action-button i {
    font-size: 1.1rem;
}

/* Map Placeholder */
.map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 350px;
    background: #f8f9fa;
    border-radius: 12px;
    color: #666;
    font-style: italic;
    border: 2px dashed #ddd;
}

/* Responsive Design */
@media (max-width: 768px) {
    .dentist-title {
        font-size: 2.2rem;
    }
    
    .dentist-specialty {
        font-size: 1.2rem;
    }
    
    .dentist-main-image {
        max-width: 300px;
    }
    
    .dentist-info-columns {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .info-card {
        padding: 20px;
    }
    
    .contact-item {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
    
    .action-buttons {
        gap: 12px;
    }
    
    .action-button {
        padding: 12px 16px;
    }
    
    .dentist-map {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .dentist-hero {
        padding: 40px 0;
    }
    
    .dentist-title {
        font-size: 1.8rem;
    }
    
    .dentist-content-section {
        padding: 40px 0;
    }
    
    .container {
        padding: 0 15px;
    }
    
    .ad-banner {
        padding: 20px;
    }
    
    .ad-image {
        max-width: 250px;
    }
}

/* Smooth scrolling for anchor links */
html {
    scroll-behavior: smooth;
}

/* Loading animation for map */
.dentist-map {
    position: relative;
}

.dentist-map::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: #f8f9fa;
    z-index: 1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.dentist-map.loading::before {
    opacity: 1;
}
