.property-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px;
}

.property-header {
    margin-bottom: 30px;
}

.property-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #1a1a1a;
}

.property-address {
    font-size: 18px;
    color: #666;
    margin-bottom: 15px;
}

.property-price {
    font-size: 36px;
    font-weight: 700;
    color: #2c5f8d;
    margin-bottom: 20px;
}

.property-meta {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    color: #333;
}

.meta-item svg {
    width: 24px;
    height: 24px;
    fill: #2c5f8d;
}

.property-status {
    display: inline-block;
    padding: 8px 16px;
    background: #2c5f8d;
    color: white;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 14px;
}

.property-content {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 30px;
}

@media (max-width: 968px) {
    .property-content {
        grid-template-columns: 1fr;
    }
}

/* Gallery */
.property-gallery {
    margin-bottom: 30px;
}

.main-image {
    width: 100%;
    height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    cursor: pointer;
}

.thumbnail-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.thumbnail {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: #2c5f8d;
}

/* Description Section */
.property-section {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #1a1a1a;
    border-bottom: 2px solid #2c5f8d;
    padding-bottom: 10px;
}

.property-description {
    line-height: 1.8;
    color: #444;
    font-size: 16px;
}

/* Key Features */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8f9fa;
    border-radius: 4px;
}

.feature-item::before {
    content: "\2713";
    color: #2c5f8d;
    font-weight: bold;
    font-size: 18px;
}

/* Living Here */
.living-intro {
    line-height: 1.8;
    color: #444;
    font-size: 16px;
    margin: 0 0 20px;
}

.living-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.living-card {
    background: #f8f9fa;
    border-radius: 6px;
    padding: 20px;
}

.living-card__title {
    font-size: 18px;
    font-weight: 700;
    color: #2c5f8d;
    margin: 0 0 12px;
}

.living-card__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.living-card__list li {
    line-height: 1.6;
    color: #444;
    font-size: 15px;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.living-card__list li:last-child {
    border-bottom: 0;
}

.living-card__list strong {
    color: #1a1a1a;
}

/* Details Table */
.details-table {
    width: 100%;
    border-collapse: collapse;
}

.details-table tr {
    border-bottom: 1px solid #e0e0e0;
}

.details-table td,
.details-table th {
    padding: 15px 10px;
    font-size: 15px;
}

.details-table th {
    font-weight: 600;
    color: #666;
    text-align: left;
    width: 40%;
}

.details-table td:last-child {
    color: #333;
}

/* Map */
.property-map {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    background: #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
}

/* Sidebar */
.property-sidebar {
    position: sticky;
    top: 20px;
    height: fit-content;
}

/* Contact Agent Card */
.agent-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 20px;
}

.agent-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.agent-avatar {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: #2c5f8d;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
}

.agent-info h3 {
    margin: 0 0 5px 0;
    font-size: 18px;
}

.agent-info p {
    margin: 0;
    color: #666;
    font-size: 14px;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    font-family: inherit;
}

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

.btn-primary {
    width: 100%;
    padding: 14px;
    background: #2c5f8d;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-primary:hover {
    background: #234a6d;
}

.btn-secondary {
    width: 100%;
    padding: 14px;
    background: white;
    color: #2c5f8d;
    border: 2px solid #2c5f8d;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 10px;
}

.btn-secondary:hover {
    background: #2c5f8d;
    color: white;
}

/* Mortgage Calculator */
.calculator-card {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.calculator-card h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.calc-input-group {
    margin-bottom: 15px;
}

.calc-input-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.calc-input-group input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.calc-result {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 4px;
    margin-top: 20px;
    text-align: center;
}

.calc-result .amount {
    font-size: 32px;
    font-weight: 700;
    color: #2c5f8d;
    margin: 10px 0;
}

.calc-result .label {
    color: #666;
    font-size: 14px;
}

/* EPC Rating */
.epc-rating {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin: 20px 0;
}

.epc-bar {
    display: flex;
    align-items: center;
    gap: 10px;
}

.epc-letter {
    font-weight: bold;
    width: 30px;
}

.epc-bar-fill {
    height: 30px;
    background: #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    padding: 0 10px;
    color: white;
    font-weight: bold;
}

.epc-bar-fill.active {
    background: #4CAF50;
}

/* Floor Plan */
.floorplan-image {
    width: 100%;
    border-radius: 8px;
    margin-top: 15px;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.share-btn {
    flex: 1;
    padding: 10px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    transition: all 0.3s;
}

.share-btn:hover {
    background: #f8f9fa;
    border-color: #2c5f8d;
}

.thumbnail-button {
    background: transparent;
    border: 0;
    cursor: pointer;
    padding: 0;
}

.thumbnail-button:focus-visible {
    outline: 3px solid #2c5f8d;
    outline-offset: 2px;
}

.thumbnail-button.is-active .thumbnail {
    border-color: #2c5f8d;
}

.share-btn:focus-visible,
.btn-primary:focus-visible,
.btn-secondary:focus-visible {
    outline: 3px solid #1a1a1a;
    outline-offset: 2px;
}

.property-action-status,
.contact-form-status {
    margin: 10px 0 0;
    min-height: 1.5em;
}

.section-title__note {
    font-size: 15px;
    font-style: italic;
    font-weight: 100;
}

.property-map__image {
    max-height: 400px;
    object-fit: cover;
    width: 100%;
}

.btn-secondary {
    box-sizing: border-box;
    display: block;
    text-align: center;
    text-decoration: none;
}

.calc-result[hidden] {
    display: none;
}

.calc-result__disclaimer {
    margin-top: 10px;
}

.epc-bar-fill--a { width: 100%; }
.epc-bar-fill--b { width: 90%; }
.epc-bar-fill--c { width: 80%; }
.epc-bar-fill--d { width: 70%; }
.epc-bar-fill--e { width: 60%; }
.epc-bar-fill--f { width: 50%; }
.epc-bar-fill--g { width: 40%; }
