/* Custom CSS for CarePoint Pharmacy */

/* Root Variables */
:root {
    --primary-color: #2c5aa0;
    --secondary-color: #28a745;
    --accent-color: #17a2b8;
    --light-blue: #e8f4f8;
    --light-green: #e8f5e8;
    --dark-text: #2c3e50;
    --light-text: #6c757d;
    --white: #ffffff;
    --light-gray: #f8f9fa;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    color: var(--dark-text);
    scroll-behavior: smooth;
}

/* Custom Bootstrap Overrides */
.btn-primary {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    background-color: #1e3d6f;
    border-color: #1e3d6f;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

.btn-outline-primary {
    color: var(--primary-color);
    border-color: var(--primary-color);
    font-weight: 500;
    padding: 12px 24px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.btn-outline-primary:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

.text-primary {
    color: var(--primary-color) !important;
}

.bg-primary {
    background-color: var(--primary-color) !important;
}

/* Navigation */
.navbar {
    padding: 1rem 0;
    transition: all 0.3s ease;
}

.navbar-toggler {
    border: none;
    padding: 0.25rem 0.5rem;
    font-size: 1.25rem;
    line-height: 1;
    background-color: transparent;
    border-radius: 0.375rem;
    transition: box-shadow 0.15s ease-in-out;
}

.navbar-toggler:focus {
    text-decoration: none;
    outline: 0;
    box-shadow: 0 0 0 0.25rem rgba(44, 90, 160, 0.25);
}

.navbar-brand {
    font-size: 1.5rem;
    color: var(--primary-color) !important;
    text-decoration: none;
    transition: all 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.nav-link {
    font-weight: 500;
    color: var(--dark-text) !important;
    transition: all 0.3s ease;
    position: relative;
}

.nav-link:hover {
    color: var(--primary-color) !important;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after {
    width: 80%;
}

/* Hero Section */
.hero-section {
    background: linear-gradient(135deg, var(--light-blue) 0%, var(--white) 100%);
    padding-top: 80px;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 40%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="%232c5aa0" opacity="0.1"/></svg>') repeat;
    background-size: 50px 50px;
}

.hero-content h1 {
    color: var(--dark-text);
    margin-bottom: 1.5rem;
}

.hero-content .lead {
    color: var(--light-text);
    font-size: 1.2rem;
}

.hero-icon {
    font-size: 12rem;
    color: var(--primary-color);
    opacity: 0.1;
    animation: float 6s ease-in-out infinite;
}

/* Animations */
@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-20px); }
}

.fade-in {
    animation: fadeInUp 1s ease-out;
}

.fade-in-delay {
    animation: fadeInUp 1s ease-out 0.3s both;
}

.fade-in-delay-2 {
    animation: fadeInUp 1s ease-out 0.6s both;
}

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

/* Section Styles */
.section-padding {
    padding: 60px 0;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 1rem;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 60px;
    height: 3px;
    background-color: var(--primary-color);
    transform: translateX(-50%);
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--light-text);
    max-width: 600px;
    margin: 0 auto;
}

/* About Section */
.about-features .row {
    display: flex;
    flex-wrap: wrap;
}

.about-features [class*="col-"] {
    display: flex;
    margin-bottom: 1rem;
}
.about-content h3 {
    color: var(--dark-text);
    font-weight: 600;
}

.about-stats .stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.about-stats .stat-label {
    font-size: 0.9rem;
    color: var(--light-text);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0;
    padding: 1.25rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.5rem;
    color: var(--white);
}

.feature-content h5 {
    color: var(--dark-text);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.feature-content p {
    color: var(--light-text);
    margin: 0;
    font-size: 0.95rem;
}

/* Services Section */
.service-card {
    background: var(--white);
    padding: 1.75rem 1.5rem;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    border: 1px solid #eef2f7;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.service-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    transition: all 0.3s ease;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-icon i {
    font-size: 2rem;
    color: var(--white);
}

.service-card h4 {
    color: var(--dark-text);
    font-weight: 600;
    margin-bottom: 1rem;
}

.service-card p {
    color: var(--light-text);
    line-height: 1.6;
}

/* Hours Section */
.hours-card {
    background: var(--white);
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid #eef2f7;
}

.hours-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #eef2f7;
}

.hours-item:last-child {
    border-bottom: none;
}

.hours-item .day {
    font-weight: 600;
    color: var(--dark-text);
}

.hours-item .time {
    color: var(--primary-color);
    font-weight: 500;
}

.emergency-info {
    text-align: center;
    padding: 2rem;
    background: linear-gradient(135deg, var(--light-blue), var(--light-green));
    border-radius: 12px;
}

.emergency-info i {
    font-size: 3rem;
    color: var(--primary-color);
}

.emergency-info h5 {
    color: var(--dark-text);
    font-weight: 600;
    margin-bottom: 1rem;
}

.emergency-info p {
    color: var(--light-text);
    margin-bottom: 1.5rem;
}

/* Location Section */
.map-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

.map-overlay {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
}

.location-info {
    padding: 2rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    height: 100%;
}

.location-details h4 {
    color: var(--dark-text);
    font-weight: 600;
}

.location-item {
    border: 1px solid #e9ecef;
    transition: all 0.3s ease;
}

.location-item i {
    width: 20px;
    font-size: 1.2rem;
    color: var(--primary-color);
    margin-right: 1rem;
    margin-top: 2px;
    flex-shrink: 0;
}

.location-item div {
    flex: 1;
}

.location-item strong {
    color: var(--dark-text);
    font-weight: 600;
}

.location-item a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.location-item a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

.location-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1) !important;
}

.location-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(44, 90, 160, 0.3);
}

.location-item .d-flex {
    align-items: center;
}

.location-icon i {
    color: white;
    font-size: 1.4rem;
}

.pharmacy-gallery {
    margin-top: 2rem;
}

.pharmacy-gallery h5 {
    color: var(--dark-text);
    font-weight: 600;
}

.gallery-container {
    position: relative;
    margin-top: 1rem;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.gallery-scroll {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    overflow-x: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--primary-color) var(--light-gray);
    animation: autoScroll 15s linear infinite;
}

.gallery-scroll::-webkit-scrollbar {
    height: 6px;
}

.gallery-scroll::-webkit-scrollbar-track {
    background: var(--light-gray);
    border-radius: 3px;
}

.gallery-scroll::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.gallery-scroll:hover {
    animation-play-state: paused;
}

.gallery-item {
    flex: 0 0 200px;
    height: 150px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
    transition: transform 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

@keyframes autoScroll {
    0% { transform: translateX(0); }
    25% { transform: translateX(-25%); }
    50% { transform: translateX(-50%); }
    75% { transform: translateX(-25%); }
    100% { transform: translateX(0); }
}

/* Pharmacy Logo Styles */
.navbar-brand {
    display: flex;
    align-items: center;
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.pharmacy-logo {
    width: 90px;
    height: 90px;
    margin-right: 10px;
    border-radius: 50%;
    object-fit: contain;
    background: white;
    padding: 5px;
    box-shadow: 0 2px 8px rgba(44, 90, 160, 0.2);
}

.gallery-image:hover {
    transform: scale(1.1);
}

/* Enhanced Contact Section Styles */
.contact-section {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.contact-card {
    background: white;
    border-radius: 20px;
    padding: 2rem;
    height: 100%;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
    transition: all 0.4s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.contact-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.contact-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.contact-card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    gap: 1rem;
}

.contact-icon-wrapper {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 20px rgba(44, 90, 160, 0.3);
    position: relative;
}

.contact-icon-wrapper::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 16px;
    opacity: 0.3;
    filter: blur(10px);
    z-index: -1;
}

.contact-icon-wrapper i {
    color: white;
    font-size: 1.5rem;
}

.contact-card-header h4 {
    margin: 0;
    color: var(--dark-text);
    font-weight: 600;
    font-size: 1.25rem;
}

/* Address Card Specific Styles */
.address-card .address-text {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

.address-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.address-actions .btn {
    margin-bottom: 0.5rem;
}

/* Navigation Improvements */
@media (min-width: 992px) {
    .navbar-collapse {
        display: flex !important;
    }
    
    .navbar-toggler {
        display: none;
    }
}

.smooth-scroll {
    transition: color 0.3s ease;
}

.smooth-scroll:hover {
    color: var(--primary-color) !important;
}

/* Hours Card Specific Styles */
.hours-schedule {
    margin-bottom: 1.5rem;
}

.hours-day {
    display: flex;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid #f1f3f4;
    gap: 1rem;
}

.hours-day:last-child {
    border-bottom: none;
}

.hours-day.special {
    background: linear-gradient(90deg, rgba(40, 167, 69, 0.1), rgba(40, 167, 69, 0.05));
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-top: 0.5rem;
    border: none;
}

.day-label {
    font-weight: 500;
    color: var(--dark-text);
}

.time-range {
    font-weight: 600;
    color: var(--primary-color);
}

.status-badge {
    text-align: center;
}

.pulse-animation {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

/* Phone Card Specific Styles */
.phone-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 0.5rem;
    transition: all 0.3s ease;
}

.phone-number:hover {
    color: var(--accent-color);
    transform: scale(1.05);
}

.phone-note {
    color: var(--text-color);
    font-size: 0.9rem;
    margin-bottom: 1rem;
}

.contact-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.feature-tag {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
}

/* Rating Card Specific Styles */
.rating-display {
    text-align: center;
    margin-bottom: 1rem;
}

.stars-large {
    margin-bottom: 0.75rem;
}

.stars-large i {
    color: #ffc107;
    font-size: 1.5rem;
    margin: 0 0.1rem;
    text-shadow: 0 1px 3px rgba(255, 193, 7, 0.3);
}

.rating-text {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.rating-score {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-text);
}

.rating-reviews {
    color: var(--text-color);
    font-size: 0.9rem;
}

.review-snippet {
    font-style: italic;
    color: var(--text-color);
    text-align: center;
    margin: 0;
    font-size: 0.9rem;
}

/* Pharmacy Carousel Styles */
/* Option 1: Professional Modern Carousel */
.pharmacy-carousel-modern {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    background: white;
}

/* Clean Carousel (No Text Overlays) */
.pharmacy-carousel-clean {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    background: white;
}

.carousel-slide-wrapper-clean {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.carousel-image-clean {
    height: 100%;
    object-fit: contain;
    object-position: center;
    transition: transform 0.6s ease;
    background: #f8f9fa;
}

.carousel-slide-wrapper {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.carousel-image {
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.carousel-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 3rem 2rem 2rem;
}

.carousel-caption {
    position: static;
    color: white;
    text-align: left;
    padding: 0;
}

.caption-content h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: white;
}

.caption-content p {
    font-size: 1rem;
    margin-bottom: 1rem;
    opacity: 0.9;
}

.caption-features {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.feature-badge-small {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 500;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.carousel-control-prev,
.carousel-control-next {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.8;
    transition: all 0.3s ease;
}

.carousel-control-prev {
    left: 20px;
}

.carousel-control-next {
    right: 20px;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
    opacity: 1;
    background: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.carousel-control-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
}

.carousel-control-icon i {
    color: var(--primary-color);
    font-size: 1.2rem;
}

.carousel-indicators {
    bottom: 20px;
    margin-bottom: 0;
}

.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    border: 2px solid white;
    margin: 0 3px;
}

.carousel-indicators button.active {
    background: white;
}

/* Option 2: Card-Style Carousel */
.pharmacy-carousel-cards {
    padding: 1rem;
}

.carousel-image-card {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    height: 400px;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.carousel-image-card:hover .card-image {
    transform: scale(1.05);
}

.carousel-info-card {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    height: 400px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 8px 20px rgba(44, 90, 160, 0.3);
}

.info-icon i {
    color: white;
    font-size: 1.5rem;
}

.carousel-info-card h4 {
    color: var(--dark-text);
    margin-bottom: 1rem;
    font-weight: 600;
}

.carousel-info-card p {
    color: var(--text-color);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

.benefit-list li {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.benefit-list i {
    color: var(--primary-color);
}

.carousel-pagination {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

.carousel-pagination button {
    width: 50px;
    height: 6px;
    background: #e9ecef;
    border: none;
    border-radius: 3px;
    transition: all 0.3s ease;
}

.carousel-pagination button.active {
    background: var(--primary-color);
    width: 80px;
}

/* Option 3: Thumbnail Gallery */
.main-gallery-display {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    background: white;
}

.main-image-container {
    position: relative;
    height: 500px;
    overflow: hidden;
}

.main-gallery-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.image-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.8));
    padding: 2rem;
}

.image-details h4 {
    color: white;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.image-details p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-size: 1rem;
}

.thumbnail-gallery {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
    height: fit-content;
}

.thumbnail-gallery h5 {
    color: var(--dark-text);
    font-weight: 600;
    margin-bottom: 1rem;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.thumbnail-item {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 3px solid transparent;
}

.thumbnail-item.active {
    border-color: var(--primary-color);
    box-shadow: 0 8px 20px rgba(44, 90, 160, 0.3);
}

.thumbnail-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.thumbnail-item img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(44, 90, 160, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.thumbnail-item:hover .thumbnail-overlay,
.thumbnail-item.active .thumbnail-overlay {
    opacity: 1;
}

.thumbnail-overlay i {
    color: white;
    font-size: 1.2rem;
}

.gallery-stats {
    display: flex;
    gap: 1rem;
}

.stat-item {
    text-align: center;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 12px;
    flex: 1;
}

.stat-number {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--text-color);
    font-weight: 500;
}

/* Carousel Options Control Panel */
.carousel-options {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.option-btn {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 1.5rem 1rem;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    width: 200px;
    backdrop-filter: blur(10px);
}

.option-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.option-btn.active {
    background: white;
    color: var(--primary-color);
    border-color: white;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.option-btn i {
    display: block;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.option-btn span {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.option-btn small {
    display: block;
    opacity: 0.8;
    font-size: 0.8rem;
}

.option-btn.active small {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .carousel-options {
        flex-direction: column;
        align-items: center;
    }
    
    .option-btn {
        width: 100%;
        max-width: 300px;
    }
    
    .thumbnail-grid {
        grid-template-columns: 1fr;
    }
    
    .carousel-slide-wrapper,
    .main-image-container {
        height: 300px;
    }
    
    .carousel-image-card,
    .carousel-info-card {
        height: auto;
        min-height: 300px;
    }
    
    /* Mobile spacing for map section */
    .map-overlay .btn {
        margin-bottom: 1rem;
    }
    
    .contact-card {
        margin-bottom: 1.5rem;
    }
    
    /* Mobile navbar adjustments */
    .navbar {
        padding: 0.5rem 0;
    }
    
    .navbar-brand {
        font-size: 1.25rem;
    }
    
    .pharmacy-logo {
        width: 50px;
        height: 50px;
        margin-right: 8px;
    }
    
    .navbar-toggler {
        padding: 0.25rem 0.5rem;
        margin-left: auto;
        align-self: center;
    }
    
    .navbar-nav {
        text-align: center;
    }
    
    .nav-link {
        padding: 0.75rem 1rem;
    }
}

.location-features {
    margin-top: 2rem;
}

.feature-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 1.5rem 1rem;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    border: 1px solid #eef2f7;
    height: 100%;
    min-height: 120px;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

.location-features [class*="col-"] {
    display: flex;
    justify-content: center;
}

.location-features .row {
    justify-content: center;
}

.feature-badge:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--primary-color);
}

.feature-badge i {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

.feature-badge span {
    font-weight: 500;
    color: var(--dark-text);
    text-align: center;
    font-size: 0.9rem;
}

/* Contact Section */
.contact-item {
    text-align: center;
    padding: 2rem;
    background: var(--white);
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    height: 100%;
}

.contact-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.contact-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--secondary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.contact-icon i {
    font-size: 1.8rem;
    color: var(--white);
}

.contact-item h5 {
    color: var(--dark-text);
    font-weight: 600;
    margin-bottom: 1rem;
}

.contact-item p {
    color: var(--light-text);
    margin: 0;
}

.contact-item a {
    color: var(--primary-color);
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-item a:hover {
    color: var(--accent-color);
    text-decoration: underline;
}

/* Footer */
footer {
    background: linear-gradient(135deg, var(--primary-color), #1e3d6f) !important;
}

footer a {
    transition: all 0.3s ease;
}

footer a:hover {
    color: var(--white) !important;
    text-decoration: none;
}

.social-links a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .location-features .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
    }
    
    .feature-badge {
        max-width: none;
        margin: 0;
    }
    
    .hero-section {
        padding-top: 100px;
        text-align: center;
    }
    
    .hero-icon {
        font-size: 8rem;
        margin-top: 2rem;
    }
    
    .section-title {
        font-size: 2rem;
    }
    
    .feature-item {
        flex-direction: column;
        text-align: center;
    }
    
    .feature-icon {
        margin: 0 auto 1rem;
    }
    
    .hours-card {
        padding: 2rem 1.5rem;
    }
    
    .emergency-info {
        margin-top: 2rem;
    }
    
    .location-info {
        margin-top: 2rem;
    }
    
    .gallery-container {
        margin-top: 1rem;
    }
    
    .gallery-scroll {
        padding: 0.5rem;
        gap: 0.75rem;
    }
    
    .gallery-item {
        flex: 0 0 160px;
        height: 120px;
    }
    
    .gallery-image {
        height: 100%;
        object-fit: cover;
    }
    
    .map-overlay {
        position: static;
        text-align: center;
        margin-top: 1rem;
    }
    
    .about-stats {
        margin-top: 2rem !important;
    }
    
    .about-stats .col-4 {
        margin-bottom: 1rem;
    }
    
    .about-stats .stat-number {
        font-size: 2rem;
    }
    
    .about-stats .stat-label {
        font-size: 0.8rem;
    }
}

@media (max-width: 576px) {
    .location-features .col-md-3 {
        flex: 0 0 50%;
        max-width: 50%;
        margin-bottom: 1rem;
    }
    
    .section-padding {
        padding: 60px 0;
    }
    
    .hero-content .display-4 {
        font-size: 2rem;
    }
    
    .service-card,
    .contact-item {
        padding: 2rem 1.5rem;
    }
    
    .btn-lg {
        padding: 10px 20px;
        font-size: 1rem;
    }
    
    .hero-buttons {
        margin-top: 1.5rem;
    }
    
    .hero-buttons .btn {
        margin-bottom: 0.5rem;
        width: 100%;
    }
}

/* Scroll behavior for smooth navigation */
html {
    scroll-behavior: smooth;
}

/* Loading animation for better UX */
.loading {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
}

.loading.loaded {
    opacity: 1;
    transform: translateY(0);
}
