/**
 * Services Shortcode Styles
 * 
 * @package Pro Estate Agents
 */

.services-shortcode {
    margin: 40px 0;
}

.services-grid {
    display: grid;
    gap: 30px;
    margin: 0;
    padding: 0;
}

.service-card {
    background: #ffffff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    position: relative;
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #791093;
}

.service-image {
    position: relative;
    overflow: hidden;
    height: 200px;
}

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

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

.service-content {
    padding: 25px;
}

.service-title {
    margin: 0 0 15px 0;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.4;
}

.service-title a {
    color: #1f2937;
    text-decoration: none;
    transition: color 0.3s ease;
}

.service-title a:hover {
    color: #791093;
}

.service-excerpt {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
}

.service-meta {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.service-price,
.service-duration {
    background: #f3f4f6;
    color: #374151;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

.service-price {
    background: #dbeafe;
    color: #1e40af;
}

.service-duration {
    background: #fef3c7;
    color: #92400e;
}

.service-button {
    text-align: center;
}

.btn-view-service {
    display: inline-block;
    background: #791093;
    color: #ffffff;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
    border: 2px solid #791093;
}

.btn-view-service:hover {
    background: #ffffff;
    color: #791093;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(121, 16, 147, 0.3);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 25px;
    }
}

@media (max-width: 992px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px;
    }
    
    .service-content {
        padding: 20px;
    }
    
    .service-title {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr !important;
        gap: 20px;
    }
    
    .services-shortcode {
        margin: 30px 0;
    }
    
    .service-card {
        max-width: 400px;
        margin: 0 auto;
    }
}

@media (max-width: 480px) {
    .service-content {
        padding: 18px;
    }
    
    .service-title {
        font-size: 15px;
    }
    
    .service-excerpt {
        font-size: 13px;
    }
    
    .btn-view-service {
        padding: 10px 20px;
        font-size: 13px;
    }
}

/* No results styling */
.services-shortcode-no-results {
    text-align: center;
    padding: 60px 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 2px dashed #d1d5db;
}

.services-shortcode-no-results p {
    color: #6b7280;
    font-size: 16px;
    margin: 0;
}

/* Animation for cards */
.service-card {
    animation: fadeInUp 0.6s ease-out;
}

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

/* Stagger animation for multiple cards */
.service-card:nth-child(1) { animation-delay: 0.1s; }
.service-card:nth-child(2) { animation-delay: 0.2s; }
.service-card:nth-child(3) { animation-delay: 0.3s; }
.service-card:nth-child(4) { animation-delay: 0.4s; }
.service-card:nth-child(5) { animation-delay: 0.5s; }
.service-card:nth-child(6) { animation-delay: 0.6s; }
.service-card:nth-child(7) { animation-delay: 0.7s; }
.service-card:nth-child(8) { animation-delay: 0.8s; }

/* Hide unwanted meta information */
.services-shortcode .entry-meta,
.services-shortcode .post-meta,
.services-shortcode .entry-footer,
.services-shortcode .post-footer,
.services-shortcode .comments-link,
.services-shortcode .entry-date,
.services-shortcode .posted-on,
.services-shortcode .byline,
.services-shortcode .comments-number,
.services-shortcode .no-comments,
.services-shortcode time,
.services-shortcode .comments-link,
.services-shortcode .entry-date,
.services-shortcode .post-date,
.services-shortcode .meta,
.services-shortcode .post-meta,
.services-shortcode .entry-meta,
.services-shortcode .post-footer,
.services-shortcode .entry-footer {
    display: none !important;
}

/* Additional meta hiding for common themes */
.services-shortcode .post-date,
.services-shortcode .entry-date,
.services-shortcode .meta-sep,
.services-shortcode .sep,
.services-shortcode .meta-info,
.services-shortcode .post-info,
.services-shortcode .entry-info {
    display: none !important;
}

/* Hide any remaining date and comment elements */
.services-shortcode [class*="date"],
.services-shortcode [class*="comment"],
.services-shortcode [class*="meta"] {
    display: none !important;
}

/* JavaScript to remove any remaining meta information */
.services-shortcode {
    position: relative;
}

/* Service Sharing Buttons */
.service-sharing {
    margin: 30px 0;
}

.service-sharing h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #1f2937;
    text-align: center;
}

.service-sharing .sharing-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.service-sharing .share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    min-height: 40px;
    cursor: pointer;
}

.service-sharing .share-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.service-sharing .share-btn span {
    white-space: nowrap;
}

/* Platform-specific colors */
.service-sharing .share-facebook {
    background: #1877f2;
    color: #ffffff;
}

.service-sharing .share-facebook:hover {
    background: #166fe5;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(24, 119, 242, 0.3);
}

.service-sharing .share-whatsapp {
    background: #25d366;
    color: #ffffff;
}

.service-sharing .share-whatsapp:hover {
    background: #1ea952;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.service-sharing .share-twitter {
    background: #000000;
    color: #ffffff;
}

.service-sharing .share-twitter:hover {
    background: #14171a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.service-sharing .share-email {
    background: #ea4335;
    color: #ffffff;
}

.service-sharing .share-email:hover {
    background: #d33426;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(234, 67, 53, 0.3);
}

.service-sharing .share-copy {
    background: #6c757d;
    color: #ffffff;
}

.service-sharing .share-copy:hover {
    background: #5a6268;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

/* Copy button states */
.service-sharing .share-copy.copied {
    background: #28a745;
}

.service-sharing .share-copy.error {
    background: #dc3545;
}

/* Responsive sharing buttons */
@media (max-width: 768px) {
    .service-sharing .sharing-buttons {
        gap: 8px;
    }
    
    .service-sharing .share-btn {
        padding: 8px 12px;
        font-size: 13px;
        min-height: 36px;
    }
    
    .service-sharing .share-btn svg {
        width: 16px;
        height: 16px;
    }
}

@media (max-width: 480px) {
    .service-sharing .sharing-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .service-sharing .share-btn {
        width: 100%;
        max-width: 200px;
        justify-content: center;
    }
}

/* Service Gallery Lightbox Styles */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    display: none;
    opacity: 0;
}

.lightbox-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image-container {
    position: relative;
    max-width: 90%;
    max-height: 90%;
    text-align: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.lightbox-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 18px;
    background: rgba(0, 0, 0, 0.7);
    padding: 20px;
    border-radius: 8px;
    display: none;
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    font-size: 40px;
    cursor: pointer;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 30px;
    pointer-events: none;
}

.lightbox-nav-btn {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: white;
    cursor: pointer;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    pointer-events: auto;
}

.lightbox-nav-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}

.lightbox-nav-btn svg {
    width: 30px;
    height: 30px;
    fill: currentColor;
}

.lightbox-counter {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 18px;
    background: rgba(0, 0, 0, 0.7);
    padding: 10px 20px;
    border-radius: 20px;
    font-weight: 500;
}

/* Gallery image hover effects */
.service-gallery-grid .gallery-image {
    transition: all 0.3s ease;
    cursor: pointer;
}

.service-gallery-grid .gallery-image:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Body scroll lock when lightbox is open */
body.lightbox-open {
    overflow: hidden;
}

/* Responsive lightbox */
@media (max-width: 768px) {
    .lightbox-close {
        top: 15px;
        right: 20px;
        width: 40px;
        height: 40px;
        font-size: 30px;
    }
    
    .lightbox-nav {
        padding: 0 20px;
    }
    
    .lightbox-nav-btn {
        width: 50px;
        height: 50px;
    }
    
    .lightbox-nav-btn svg {
        width: 24px;
        height: 24px;
    }
    
    .lightbox-counter {
        bottom: 20px;
        font-size: 16px;
        padding: 8px 16px;
    }
}

@media (max-width: 480px) {
    .lightbox-close {
        top: 10px;
        right: 15px;
        width: 35px;
        height: 35px;
        font-size: 25px;
    }
    
    .lightbox-nav {
        padding: 0 15px;
    }
    
    .lightbox-nav-btn {
        width: 45px;
        height: 45px;
    }
    
    .lightbox-nav-btn svg {
        width: 20px;
        height: 20px;
    }
    
    .lightbox-counter {
        bottom: 15px;
        font-size: 14px;
        padding: 6px 12px;
    }
}

/* Custom column layouts */
.services-grid[style*="grid-template-columns: repeat(1, 1fr)"] {
    max-width: 500px;
    margin: 0 auto;
}

.services-grid[style*="grid-template-columns: repeat(2, 1fr)"] {
    max-width: 800px;
    margin: 0 auto;
}

.services-grid[style*="grid-template-columns: repeat(3, 1fr)"] {
    max-width: 1200px;
    margin: 0 auto;
}

.services-grid[style*="grid-template-columns: repeat(4, 1fr)"] {
    max-width: 1400px;
    margin: 0 auto;
}
