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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #d4f1f9;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */
.panoramic-header {
    position: relative;
    height: 4in;
    background-image: url('/images/pano6_skyfixed_medium.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-content {
    position: relative;
    z-index: 10;
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem 20px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.panoramic-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.panoramic-header nav {
    margin-top: 0.5rem;
}

.panoramic-header nav a {
    color: white;
    text-decoration: none;
    margin-right: 1.5rem;
    font-weight: 500;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.panoramic-header nav a:hover {
    color: #25bde0;
}

.hero-text {
    text-align: center;
    margin-top: auto;
    margin-bottom: 2rem;
}

.hero-text h2 {
    font-size: 2.5rem;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 6px rgba(0,0,0,0.6);
}

.hero-text p {
    font-size: 1.3rem;
    color: #b3e5f7;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Main Content */
main {
    padding: 2rem 0;
    min-height: calc(100vh - 200px);
}

/* Filters */
.filters {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 2rem;
    margin-top: 10px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #25bde0;
    background-color: white;
    color: #25bde0;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.filter-btn:hover {
    background-color: #25bde0;
    color: white;
}

.filter-btn.active {
    background-color: #25bde0;
    color: white;
}

/* Properties Grid */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.property-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.property-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    background-color: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 1rem;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.property-content {
    padding: 1.5rem;
}

.property-name {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.property-title {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 1rem;
}

.property-description {
    color: #666;
    margin-bottom: 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.property-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #25bde0;
}

.property-status {
    padding: 0.4rem 0.8rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
}

.status-for-sale {
    background-color: #d4edda;
    color: #155724;
}

.status-under-contract {
    background-color: #fff3cd;
    color: #856404;
}

.status-sold {
    background-color: #f8d7da;
    color: #721c24;
}

/* Property Details */
#property-details {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.property-detail-image {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.property-detail-images {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.property-detail-images img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.property-detail-images img:hover {
    transform: scale(1.05);
}

.property-detail-header {
    margin-bottom: 2rem;
}

.property-detail-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
}

.property-detail-title {
    font-size: 1.5rem;
    color: #555;
    margin-bottom: 1rem;
}

.property-detail-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #666;
    margin-bottom: 2rem;
}

.property-detail-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.info-item {
    padding: 1rem;
    background-color: #f8f9fa;
    border-radius: 5px;
}

.info-label {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.3rem;
}

.info-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: #1a1a1a;
}

.property-video {
    margin-top: 2rem;
}

.property-video h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.property-video iframe {
    width: 100%;
    height: 450px;
    border-radius: 8px;
}

.back-link {
    display: inline-block;
    color: #25bde0;
    text-decoration: none;
    font-weight: 500;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.back-link:hover {
    text-decoration: underline;
}

/* Loading and Error States */
.loading {
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: #666;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    margin: 2rem 0;
}

.no-properties {
    text-align: center;
    padding: 3rem;
    font-size: 1.2rem;
    color: #666;
}

/* Contact Form */
.contact-section {
    background: white;
    border-radius: 8px;
    padding: 3rem 2rem;
    margin-top: 3rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.contact-section h2 {
    text-align: center;
    color: #1a1a1a;
    margin-bottom: 0.5rem;
    font-size: 2rem;
}

.contact-section > p {
    text-align: center;
    color: #666;
    margin-bottom: 2rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.form-group input,
.form-group textarea {
    padding: 0.75rem;
    border: 2px solid #e0e0e0;
    border-radius: 5px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #25bde0;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.submit-btn {
    padding: 1rem 2rem;
    background-color: #25bde0;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: #1da8c7;
}

.submit-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

.form-message {
    padding: 1rem;
    border-radius: 5px;
    text-align: center;
    font-weight: 500;
    display: none;
}

.form-message.success {
    background-color: #d4edda;
    color: #155724;
    display: block;
}

.form-message.error {
    background-color: #f8d7da;
    color: #721c24;
    display: block;
}

/* Footer */
footer {
    background-color: #1a1a1a;
    color: white;
    padding: 2rem 0;
    text-align: center;
    margin-top: 3rem;
}

/* Property detail page header (no hero text) */
.panoramic-header:not(:has(.hero-text)) {
    height: 2in;
}

/* Responsive */
@media (max-width: 768px) {
    .panoramic-header {
        height: 3in;
    }

    .panoramic-header:not(:has(.hero-text)) {
        height: 1.5in;
    }

    .hero-text h2 {
        font-size: 1.8rem;
    }

    .hero-text p {
        font-size: 1rem;
    }

    .panoramic-header h1 {
        font-size: 1.5rem;
    }

    .properties-grid {
        grid-template-columns: 1fr;
    }

    .filters {
        flex-direction: column;
    }

    .filter-btn {
        width: 100%;
    }
}
