/*
Theme Name: My Listing
Theme URI: https://mylistingtheme.com/
Author: 27collective
Author URI: http://27collective.net/
Description: MyListing - Directory & Listing WordPress Theme
Version: 2.11.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: my-listing
Tags: one-column, two-columns, three-columns, left-sidebar, right-sidebar, grid-layout, custom-menu, custom-logo, featured-images, footer-widgets, full-width-template, sticky-post, theme-options, threaded-comments, translation-ready
This theme, like WordPress, is licensed under the GPL.
Use it to make something cool.
*/

/* =WordPress Core
-------------------------------------------------------------- */
.alignnone {
    margin: 5px 20px 20px 0;
}

.aligncenter,
div.aligncenter {
    display: block;
    margin: 5px auto 5px auto;
}

.alignright {
    float:right;
    margin: 5px 0 20px 20px;
}

.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.alignright {
    float: right;
    margin: 5px 0 20px 20px;
}

a img.alignnone {
    margin: 5px 20px 20px 0;
}

a img.alignleft {
    float: left;
    margin: 5px 20px 20px 0;
}

a img.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto
}

.wp-caption {
    background: #fff;
    border: 1px solid #f0f0f0;
    max-width: 96%; /* Image does not overflow the content area */
    padding: 5px 3px 10px;
    text-align: center;
}

.wp-caption.alignnone {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignleft {
    margin: 5px 20px 20px 0;
}

.wp-caption.alignright {
    margin: 5px 0 20px 20px;
}

.wp-caption img {
    border: 0 none;
    height: auto;
    margin: 0;
    max-width: 98.5%;
    padding: 0;
    width: auto;
}

.wp-caption p.wp-caption-text {
    font-size: 11px;
    line-height: 17px;
    margin: 0;
    padding: 0 4px 5px;
}

/* Text meant only for screen readers. */
.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    border-radius: 3px;
    box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
    clip: auto !important;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-size: 0.875rem;
    font-weight: bold;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000; /* Above WP toolbar. */
}

.sticky, .bypostauthor, .gallery-caption { font-size: 14px; }
/* Custom styles for clickable contact links in listing previews */
.lf-contact .clickable-phone,
.lf-contact .clickable-whatsapp {
    color: inherit;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border-radius: 4px;
    padding: 2px 6px;
    margin: -2px -6px;
}

.lf-contact .clickable-phone:hover {
    background-color: #4CAF50;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(76, 175, 80, 0.3);
}

.lf-contact .clickable-whatsapp:hover {
    background-color: #25D366;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(37, 211, 102, 0.3);
}

.lf-contact .clickable-phone:active,
.lf-contact .clickable-whatsapp:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

/* Additional styles for email and URL links */
.lf-contact .clickable-email {
    color: inherit;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border-radius: 4px;
    padding: 2px 6px;
    margin: -2px -6px;
}

.lf-contact .clickable-email:hover {
    background-color: #2196F3;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(33, 150, 243, 0.3);
}

.lf-contact .clickable-url {
    color: inherit;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border-radius: 4px;
    padding: 2px 6px;
    margin: -2px -6px;
}

.lf-contact .clickable-url:hover {
    background-color: #9C27B0;
    color: white;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(156, 39, 176, 0.3);
}

/* Enhanced contact buttons styles */
.enhanced-contact-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.enhanced-contact-buttons.contact-buttons-block {
    flex-direction: column;
}

.contact-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.contact-btn-phone {
    background-color: #4CAF50;
    color: white;
}

.contact-btn-phone:hover {
    background-color: #45a049;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(76, 175, 80, 0.3);
}

.contact-btn-whatsapp {
    background-color: #25D366;
    color: white;
}

.contact-btn-whatsapp:hover {
    background-color: #20b954;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(37, 211, 102, 0.3);
}

.contact-btn-email {
    background-color: #2196F3;
    color: white;
}

.contact-btn-email:hover {
    background-color: #1976D2;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(33, 150, 243, 0.3);
}

/* Mobile responsive styles */
@media (max-width: 768px) {
    .lf-contact .clickable-phone,
    .lf-contact .clickable-whatsapp {
        padding: 4px 8px;
        margin: -4px -8px;
        font-size: 14px;
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .enhanced-contact-buttons {
        flex-direction: column;
    }
    
    .contact-btn {
        justify-content: center;
        width: 100%;
    }
}

/* Optional: Add phone and WhatsApp icons on hover */
.lf-contact .clickable-phone:hover::before {
    content: "📞 ";
}

.lf-contact .clickable-whatsapp:hover::before {
    content: "💬 ";
}