/**
 * Style dla wtyczki redPin ESTICRM
 */

/* Formularz wyszukiwania */
.esticrm-search-form {
    background-color: #f5f5f5;
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.esticrm-search-form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px 15px;
}

.esticrm-search-form-field {
    flex: 1;
    padding: 0 10px;
    min-width: 200px;
    margin-bottom: 10px;
}

.esticrm-search-form-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    color: #333;
}

.esticrm-search-form-field select,
.esticrm-search-form-field input[type="number"],
.esticrm-search-form-field input[type="text"] {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: #fff;
}

.esticrm-search-form-submit {
    display: flex;
    align-items: flex-end;
}

.esticrm-search-button {
    background-color: #0073aa;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    width: 100%;
    transition: background-color 0.3s ease;
}

.esticrm-search-button:hover {
    background-color: #005177;
}

/* Karty ofert */
.esticrm-properties-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.esticrm-property-card {
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.esticrm-property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.esticrm-property-image {
    height: 200px;
    overflow: hidden;
}

.esticrm-property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.esticrm-property-card:hover .esticrm-property-image img {
    transform: scale(1.05);
}

.esticrm-property-details {
    padding: 15px;
}

.esticrm-property-title {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.3;
}

.esticrm-property-title a {
    color: #333;
    text-decoration: none;
}

.esticrm-property-title a:hover {
    color: #0073aa;
}

.esticrm-property-number {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.esticrm-property-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.esticrm-property-price {
    font-size: 18px;
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 5px;
}

.esticrm-property-features {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
}

.esticrm-property-features span {
    font-size: 14px;
    color: #666;
}

.esticrm-property-features i {
    margin-right: 5px;
    color: #0073aa;
}

.esticrm-property-location {
    margin-bottom: 10px;
    font-size: 14px;
    color: #666;
}

.esticrm-property-location i {
    margin-right: 5px;
    color: #0073aa;
}

.esticrm-property-description {
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.esticrm-property-agent {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.esticrm-property-agent-image {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    margin-right: 10px;
}

.esticrm-property-agent-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.esticrm-property-agent-info {
    flex: 1;
}

.esticrm-property-agent-name {
    margin: 0 0 5px;
    font-size: 14px;
    font-weight: bold;
}

.esticrm-property-agent-phone {
    margin: 0;
    font-size: 13px;
}

.esticrm-property-agent-phone a {
    color: #0073aa;
    text-decoration: none;
}

.esticrm-property-link {
    display: inline-block;
    background-color: #0073aa;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.esticrm-property-link:hover {
    background-color: #005177;
    color: white;
}

/* Karty agentów */
.esticrm-agents-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.esticrm-agent-card {
    border: 1px solid #ddd;
    border-radius: 5px;
    overflow: hidden;
    background-color: white;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.esticrm-agent-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.esticrm-agent-image {
    height: 200px;
    overflow: hidden;
}

.esticrm-agent-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.esticrm-agent-card:hover .esticrm-agent-image img {
    transform: scale(1.05);
}

.esticrm-agent-details {
    padding: 15px;
    text-align: center;
}

.esticrm-agent-name {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.3;
}

.esticrm-agent-position {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.esticrm-agent-contact {
    margin-bottom: 15px;
}

.esticrm-agent-email,
.esticrm-agent-phone {
    margin: 5px 0;
    font-size: 14px;
}

.esticrm-agent-email a,
.esticrm-agent-phone a {
    color: #0073aa;
    text-decoration: none;
}

.esticrm-agent-description {
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

.esticrm-agent-social {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
}

.esticrm-agent-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: #0073aa;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.esticrm-agent-social-icon:hover {
    background-color: #005177;
    color: white;
}

.esticrm-agent-link {
    display: inline-block;
    background-color: #0073aa;
    color: white;
    padding: 8px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    font-size: 14px;
    transition: background-color 0.3s ease;
}

.esticrm-agent-link:hover {
    background-color: #005177;
    color: white;
}

/* Strona pojedynczej oferty */
.esticrm-single-property {
    max-width: 1200px;
    margin: 0 auto;
}

.esticrm-property-header {
    margin-bottom: 30px;
}

.esticrm-property-title {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.3;
}

.esticrm-property-number {
    font-size: 16px;
    color: #666;
    margin-bottom: 10px;
}

.esticrm-property-price {
    font-size: 24px;
    font-weight: bold;
    color: #0073aa;
    margin-bottom: 20px;
}

.esticrm-property-gallery {
    margin-bottom: 30px;
}

.esticrm-property-gallery-main {
    margin-bottom: 10px;
    border-radius: 5px;
    overflow: hidden;
    height: 400px;
}

.esticrm-property-gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.esticrm-property-gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
}

.esticrm-property-gallery-thumb {
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
}

.esticrm-property-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: opacity 0.3s ease;
}

.esticrm-property-gallery-thumb:hover img {
    opacity: 0.8;
}

.esticrm-property-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
}

.esticrm-property-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.esticrm-property-detail {
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.esticrm-property-detail-label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 14px;
    color: #666;
}

.esticrm-property-detail-value {
    font-size: 16px;
    color: #333;
}

.esticrm-property-location-details {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.esticrm-property-location-detail {
    padding: 10px;
    background-color: #f5f5f5;
    border-radius: 4px;
}

.esticrm-property-location-label {
    display: block;
    font-weight: bold;
    margin-bottom: 5px;
    font-size: 14px;
    color: #666;
}

.esticrm-property-location-value {
    font-size: 16px;
    color: #333;
}

/* Strona pojedynczego agenta */
.esticrm-single-agent {
    max-width: 1200px;
    margin: 0 auto;
}

.esticrm-agent-header {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}

.esticrm-agent-image {
    flex: 0 0 300px;
    border-radius: 5px;
    overflow: hidden;
}

.esticrm-agent-image img {
    width: 100%;
    height: auto;
}

.esticrm-agent-header-info {
    flex: 1;
}

.esticrm-agent-name {
    margin: 0 0 10px;
    font-size: 28px;
    line-height: 1.3;
}

.esticrm-agent-position {
    font-size: 18px;
    color: #666;
    margin-bottom: 15px;
}

.esticrm-agent-contact {
    margin-bottom: 20px;
}

.esticrm-agent-email,
.esticrm-agent-phone {
    display: flex;
    align-items: center;
    margin: 10px 0;
    font-size: 16px;
}

.esticrm-agent-email i,
.esticrm-agent-phone i {
    margin-right: 10px;
    color: #0073aa;
}

.esticrm-agent-email a,
.esticrm-agent-phone a {
    color: #0073aa;
    text-decoration: none;
}

.esticrm-agent-social {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.esticrm-agent-social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #0073aa;
    color: white;
    text-decoration: none;
    transition: background-color 0.3s ease;
}

.esticrm-agent-social-icon:hover {
    background-color: #005177;
    color: white;
}

.esticrm-agent-content {
    margin-bottom: 30px;
}

.esticrm-agent-description {
    margin-bottom: 30px;
}

.esticrm-agent-description h2 {
    margin: 0 0 15px;
    font-size: 24px;
    color: #333;
}

.esticrm-agent-properties h2 {
    margin: 0 0 15px;
    font-size: 24px;
    color: #333;
}

.esticrm-agent-properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

/* Responsywność */
@media (max-width: 768px) {
    .esticrm-property-content {
        grid-template-columns: 1fr;
    }
    
    .esticrm-agent-header {
        flex-direction: column;
    }
    
    .esticrm-agent-image {
        flex: 0 0 auto;
        max-width: 100%;
        margin-bottom: 20px;
    }
} 