/* entities.css */
.et-details-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 40px 20px;
}

.header-img-cont {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.et-header {
    text-align: left;
    flex: 1;
    max-width: 50%;
}

.et-image {
    position: relative;
    flex: 0 0 auto;
    max-width: 200px;
    text-align: right;
}

.et-image img {
    width: 100%;
    max-width: 200px;
    height: 200px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    object-fit: cover;
    display: block;
}

.image-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    max-width: 200px;
    height: 30%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    border-radius: 0 0 12px 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.camera-icon {
    width: 24px;
    height: 24px;
    color: #fff;
}

.et-header h1 {
    font-size: 36px;
    color: #2c3e50;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    font-weight: 600;
}

.verified-badge {
    width: 24px;
    height: 24px;
}

.premium-badge {
    display: inline-flex;     
    height: 18px;
    width: 18px;
    vertical-align: middle;
}
.premium-badge img {
    height: 100%;
    width: auto;
}

.entity-type {
    font-size: 0.7rem;
    color: #7f8c8d;
    font-weight: 400;
    margin-left: 5px;
    border: 1px solid #7f8c8d;
    padding: 5px 8px;
    border-radius: 20px;
}


.et-description {
    padding: 20px 0;
    margin-bottom: 30px;
}

.et-description p {
    font-size: 16px;
    color: #656565;
    margin: 5px 0;
    display: inline-block;
    vertical-align: middle;
    line-height: 1.5;
}

.et-description svg {
	color: #656565;
}

.et-description strong {
    display: inline-block;
    vertical-align: middle;
    margin-right: 0px;
    color: #2c3e50;
}

.rating-value {
    display: inline-block;
    padding: 2px 8px;
    color: #fff;
    font-size: 14px;
    border-radius: 4px;
}

.availability {
	font-weight: 500;
	}

.availability .open {
    color: #27ae60;
}

.availability .closed {
    color: #e74c3c;
}

.availability .open-24 {
    color: #27ae60;
}

.button-row {
    display: flex;
    gap: 30px;
    justify-content: center;
    margin-bottom: 20px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    border: none;
    background: #007AFF;
    color: #fff;
    border-radius: 10px;
    text-decoration: none;
    transition: background 0.3s ease;
}

.action-btn svg {
        width: 30px;
        height: 30px;
    }
    
.whatsapp-btn { background: none; border: 1px solid #000000;}
.whatsapp-btn:hover { background: none; }

.directions-btn { background: transparent; color: #000000; border: 1px solid #000000; }
.directions-btn:hover { background: none; }

.share-btn { background: transparent; color: #000000; border: 1px solid #000000; cursor: pointer; }
.share-btn:hover { background: none; }

.enquiry-now {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px; 
    flex-wrap: wrap; 
    margin-bottom: 20px;
}

.enquiry-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    padding: 12px 24px;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.enquiry-btn svg {
    vertical-align: middle;
    stroke: currentColor;
}

.chat-btn {
	background: #e67e22;
}

.appointment-btn {
	background: #007AFF;
	}

.nursing-officer-menu {
    overflow: hidden;
}

.menu-nav {
    display: flex;
    overflow-x: auto;
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
    white-space: nowrap;
}

.menu-item {
    padding: 10px 20px;
    font-size: 18px;
    font-weight: 500;
    color: #5B5B5B;
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
}

.menu-item.active {
    color: #000000;
    border-bottom: 2px solid #000000;
}

.menu-content {
    padding: 20px;
}

.content-section {
    display: none;
}

.content-section.active {
    display: block;
}

.content-section h2 {
    font-size: 24px;
    color: #2c3e50;
    margin: 0 0 20px;
    font-weight: 500;
}

.content-section p {
    font-size: 16px;
    color: #34495e;
    margin: 10px 0;
}

.content-section strong {
    color: #2c3e50;
}

.add-review {
    margin-bottom: 30px;
}

.add-review h3 {
    font-size: 18px;
    color: #34495e;
    margin-bottom: 10px;
}

.star-rating {
    display: flex;
    gap: 10px;
    font-size: 30px;
    cursor: pointer;
}

.star {
    color: #fff;
    padding: 0px 8px 4px 8px;
    border-radius: 15px;
    background: #bdc3c7;
    transition: color 0.2s ease;
}

.review-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    z-index: 999;
    max-height: 90vh;
    overflow-y: auto;
    width: 90%;
    max-width: 600px;
}

/* Fullscreen on small devices */
@media (max-width: 767px) {
    .review-popup {
        top: 0;
        left: 0;
        transform: none;
        width: 100%;
        height: 100%;
        max-width: none;
        max-height: none;
        border-radius: 0;
        padding: 15px;
    }
}

.review-s-close {
  display: flex;
  justify-content: flex-end;
}

.review-popup textarea {
    width: 100%;
    max-width: 450px;
    height: 200px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 16px;
    font-size: 15px;
    color: #5B5B5B;
    resize: vertical;
    margin-bottom: 10px;
}

.review-popup-s-button {
    background: #007AFF;
    color: #fff;
    padding: 11px 24px;
    border: 1px solid #007AFF;
    border-radius: 24px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 20px;
    transition: background 0.3s ease;
}

.review-popup-s-button:hover {
    background: #0062CC;
    border: 1px solid #0062CC;
}

.vertical-center {
	display: inline-block;
    vertical-align: middle;
 }

.review-popup-g-button {
    background: transparent;
    color: #007AFF;
    padding: 11px 24px;
    border: 1px solid #007AFF;
    border-radius: 24px;
    cursor: pointer;
    font-weight: 500;
    font-size: 14px;
    margin-bottom: 20px;
    transition: background 0.3s ease;
}

.review-popup-g-button:hover {
	color: #9E9E9E;
	border: 1px solid #9E9E9E;
	}

.success-message {
    background: #27ae60;
    color: #fff;
    padding: 10px;
    border-radius: 6px;
    text-align: center;
    font-size: 14px;
}

.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.review-box {
    background: #f9f9f9;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.review-box h4 {
    font-size: 16px;
    color: #2c3e50;
    margin: 0 0 5px;
    font-weight: 500;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.review-rating {
    display: inline-block;
    padding: 2px 8px;
    color: #fff;
    font-size: 14px;
    border-radius: 4px;
}

.review-date {
    font-size: 14px;
    color: #7f8c8d;
}

.review-box p {
    font-size: 14px;
    color: #34495e;
    margin: 0 0 10px;
}

.helpful-section {
    text-align: right;
}

.helpful-btn {
    padding: 5px 10px;
    background: #ecf0f1;
    color: #7f8c8d;
    border: none;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
    white-space: nowrap;
}

.helpful-btn svg {
    vertical-align: middle;
    margin-right: 2px;
}

.helpful-btn:hover {
    background: #dfe6e9;
}

.show-more-btn {
    display: block;
    margin: 5px auto 0;
    padding: 5px 10px;
    background: #ecf0f1;
    color: #7f8c8d;
    border: none;
    border-radius: 20px;
    font-size: 12px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.show-more-btn:hover {
    background: #dfe6e9;
}

/* Responsive Design */
@media (max-width: 768px) {
    .et-details-page {
        padding: 30px 15px;
    }
    
    .header-img-cont {
        flex-direction: row;
        gap: 15px;
    }

    .et-header {
        max-width: 70%;
        text-align: left;
    }

    .et-image {
        max-width: 150px;
    }

    .et-image img {
        max-width: 150px;
        height: 150px;
    }

    .image-overlay {
        max-width: 150px;
        height: 30%;
    }

    .camera-icon {
        width: 20px;
        height: 20px;
    }

    .verified-badge {
        width: 16px;
        height: 16px;
    }

    .et-description p {
        font-size: 14px;
    }

    .action-btn {
        width: 50px;
        height: 50px;
    }

    .action-btn svg {
        width: 20px;
        height: 20px;
    }

    .enquiry-btn {
        padding: 10px 16px;
        font-size: 14px;
    }

    .menu-item {
        font-size: 16px;
        padding: 8px 15px;
    }

    .content-section h2 {
        font-size: 20px;
    }

    .content-section p {
        font-size: 14px;
    }

    .add-review h3 {
        font-size: 16px;
    }

    .star-rating {
        font-size: 25px;
    }

    .review-box h4 {
        font-size: 15px;
    }

    .review-rating, .review-date {
        font-size: 12px;
    }

    .review-box p {
        font-size: 13px;
    }

    .helpful-btn {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .et-details-page {
        padding: 20px 15px;
    }
    
   .header-img-cont {
        flex-direction: row;
        gap: 10px;
    }

    .et-header {
        max-width: 70%;
        text-align: left;
    }

    .et-image {
        max-width: 100px;
    }

    .et-image img {
        max-width: 100px;
        height: 100px;
    }

    .image-overlay {
        max-width: 150px;
        height: 30%;
    }

    .camera-icon {
        width: 18px;
        height: 18px;
    }

    .et-header h1 {
        font-size: 20px;
    }

    .verified-badge {
        width: 16px;
        height: 16px;
    }

    .et-description {
        padding: 15px 0;
    }

    .button-row {
        flex-wrap: wrap;
        gap: 40px;
    }

    .action-btn {
        width: 45px;
        height: 45px;
    }

    .action-btn svg {
        width: 24px;
        height: 24px;
    }

    .enquiry-btn {
        padding: 10px 12px;
        font-size: 14px;
    }

    .menu-nav {
        padding: 8px 0;
    }

    .menu-item {
        font-size: 15px;
        padding: 8px 12px;
    }

    .menu-content {
        padding: 15px 0;
    }

    .content-section h2 {
        font-size: 18px;
    }

    .content-section p {
        font-size: 14px;
    }

    .star-rating {
        font-size: 28px;
    }

    .review-popup textarea {
        height: 130px;
    }

    .review-box {
        padding: 10px;
    }
}



/* Sticky Bottom Bar */
.sticky-action-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #fff;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    padding: 8px 15px;
    z-index: 99;
}

/* Buttons Container */
.sticky-action-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    align-items: center;
    margin: 0 auto;
}

/* Common Button Style */
.sticky-btn {
    display: inline-flex;
    align-items: center;
    padding: 10px 25px;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease;
}

/* Call Button Specific Color */
.sticky-call-btn {
    background: #007AFF;
}

/* Enquiry Button Specific Color */
.sticky-enquiry-btn {
    background: #e67e22;
}


/* Show sticky bar on mobile devices (controlled by JS) */
@media (max-width: 768px) {
    .sticky-action-bar {
        display: none;
    }
}

/* Smaller screens adjustments */
@media (max-width: 480px) {
    .sticky-action-bar {
        padding: 12px 10px;
    }

    .sticky-action-buttons {
        gap: 15px;
    }

    .sticky-btn {
        padding: 12px 20px;
        font-size: 14px;
    }

    .sticky-btn svg {
        width: 16px;
        height: 16px;
        margin-right: 5px;
        vertical-align: middle;
    }
    
    .st-wh-btn {
    	height: 40px;
        width: 40px;
    }
}

.bottom-cta {
    text-align: center;
    font-size: 12px;
    color: #555;
    margin-top: 10px;
}

.bottom-cta a {
	text-decoration: none ;
	}

.bottom-cta a:hover {
    text-decoration: underline;
}