/* Propstack Connector - Frontend Styles (icons.immo Style) */

/* Property Title mit <strong> wie bei icons.immo */
.property-title-main {
    font-size: 28px;
    line-height: 1.3;
    margin-bottom: 30px;
    font-weight: 400;
}

.property-title-main strong {
    font-weight: 700;
    display: block;
    margin-bottom: 5px;
}

/* Property Grid */
.propstack-properties-grid {
    display: grid;
    gap: 30px;
    margin: 30px 0;
}

.propstack-properties-grid.columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.propstack-properties-grid.columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.propstack-properties-grid.columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 1024px) {
    .propstack-properties-grid.columns-3,
    .propstack-properties-grid.columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .propstack-properties-grid {
        grid-template-columns: 1fr;
    }
}

/* Key Facts Header (wie bei icons.immo) */
.property-header {
    margin-bottom: 30px;
    padding: 20px 0;
    border-bottom: 2px solid #e0e0e0;
}

.property-key-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    align-items: flex-start;
}

.key-fact {
    text-align: center;
    min-width: 80px;
}

.key-fact .fact-icon {
    font-size: 24px;
    margin-bottom: 5px;
}

.key-fact h4 {
    font-size: 20px;
    font-weight: 700;
    margin: 5px 0;
    color: #333;
}

.key-fact span {
    font-size: 13px;
    color: #666;
    display: block;
}

/* Property Card */
.propstack-property-card {
    background: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.propstack-property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.propstack-property-card .property-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

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

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

.propstack-property-card .property-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 5px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.propstack-property-card .property-content {
    padding: 20px;
}

.propstack-property-card .property-title {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
}

.propstack-property-card .property-title a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s ease;
}

.propstack-property-card .property-title a:hover {
    color: #0073aa;
}

.propstack-property-card .property-location {
    margin: 0 0 15px;
    color: #666;
    font-size: 14px;
}

.propstack-property-card .property-details {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e0e0e0;
    font-size: 14px;
    color: #666;
}

.propstack-property-card .property-price {
    font-size: 24px;
    font-weight: 700;
    color: #0073aa;
    margin-bottom: 15px;
}

.propstack-property-card .property-link {
    display: inline-block;
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.propstack-property-card .property-link:hover {
    background: #005a87;
}

/* Single Property */
.propstack-single-property {
    max-width: 1200px;
    margin: 30px auto;
}

.propstack-single-property .property-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.propstack-single-property .property-gallery img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 8px;
}

.propstack-single-property h1 {
    font-size: 32px;
    margin-bottom: 20px;
}

.propstack-single-property .property-meta {
    background: #f5f5f5;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 30px;
}

.propstack-single-property .property-features ul {
    list-style: none;
    padding: 0;
}

.propstack-single-property .property-features li {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

/* Contact Form */
.propstack-contact-form {
    background: #f9f9f9;
    padding: 30px;
    border-radius: 8px;
    margin-top: 30px;
}

.propstack-contact-form h3 {
    margin-top: 0;
}

.propstack-contact-form .form-group {
    margin-bottom: 20px;
}

.propstack-contact-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.propstack-contact-form input[type="text"],
.propstack-contact-form input[type="email"],
.propstack-contact-form input[type="tel"],
.propstack-contact-form textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.propstack-contact-form textarea {
    min-height: 120px;
    resize: vertical;
}

.propstack-contact-form button[type="submit"] {
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s ease;
}

.propstack-contact-form button[type="submit"]:hover {
    background: #005a87;
}

.propstack-contact-form button[type="submit"]:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.propstack-form-message {
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
}

.propstack-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.propstack-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

/* Search Form */
.propstack-search-form {
    background: #fff;
    padding: 30px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    margin-bottom: 30px;
}

.propstack-search-form .search-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
}

.propstack-search-form .search-field label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.propstack-search-form input,
.propstack-search-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.propstack-search-form button {
    width: 100%;
    padding: 10px 20px;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.propstack-search-form button:hover {
    background: #005a87;
}

/* No properties message */
.no-properties {
    text-align: center;
    padding: 40px 20px;
    background: #f5f5f5;
    border-radius: 8px;
    color: #666;
}

/* Spinner */
.propstack-contact-form .spinner,
.propstack-search-form .spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0,0,0,0.1);
    border-top-color: #0073aa;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-left: 10px;
    visibility: hidden;
}

.propstack-contact-form .spinner.is-active,
.propstack-search-form .spinner.is-active {
    visibility: visible;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Ogulo 360° Tour Section (wie bei icons.immo) */
.property-360-section {
    margin: 40px 0;
}

.property-360-section h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.property-360-tour {
    width: 100%;
    min-height: 500px;
    border-radius: 8px;
    overflow: hidden;
    background: #f5f5f5;
}

.property-360-tour iframe {
    width: 100%;
    min-height: 500px;
    border: none;
}

/* Ogulo Plugin Styling anpassen */
.property-360-tour .ogulo-container {
    margin: 0;
    border-radius: 8px;
}

.property-360-tour .ogulo-logo {
    max-width: 150px;
    margin-bottom: 10px;
}
