h1 {
    font-size: 24px;
    margin: 0;
}

.header-info {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
}

.photo-gallery {
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.main-photo {
    width: 100%;
    height: 400px;
    max-height: 400px;
    background-color: #ddd;
    overflow: hidden;
    border-radius: 8px;
    position: relative;
}

.main-photo .img-wrapper {
    width: 100%;
    height: 100%;
    min-width: 100%;
    max-height: inherit;
    top: 0;
    left: 0;
    visibility: hidden;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    animation-duration: 0.4s;
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

.main-photo .img-wrapper.active {
    visibility: visible;
}

.main-photo .img-wrapper:not(.active) {
    visibility: hidden;
    transition-delay: 0.4s;
}

.main-photo .img-wrapper.slide-left-in {
    animation-name: slideLeftIn;
}

.main-photo .img-wrapper.slide-left-out {
    animation-name: slideLeftOut;
}

.main-photo .img-wrapper.slide-right-in {
    animation-name: slideRightIn;
}

.main-photo .img-wrapper.slide-right-out {
    animation-name: slideRightOut;
}

.main-photo .img-wrapper img {
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    /* object-fit: cover; */
}

@keyframes slideLeftIn {
    from {
        margin-left: 100%;
    }

    to {
        margin-left: 0;
    }
}

@keyframes slideLeftOut {
    from {
        margin-left: 0;
    }

    to {
        margin-left: -100%;
    }
}

@keyframes slideRightIn {
    from {
        margin-left: -100%;
    }

    to {
        margin-left: 0;
    }
}


@keyframes slideRightOut {
    from {
        margin-left: 0;
    }

    to {
        margin-left: 100%;
    }
}

.photo-navigator {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 400px;
    max-height: inherit;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.photo-navigator .btn-nav {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    color: #dddddd;
    font-size: 24px;
    cursor: pointer;
    user-select: none;
    text-shadow: 0px 0px 2px #555555;
    background-color: transparent;
    border: none;
}

.photo-navigator .btn-nav:hover {
    color: #ffffff;
    background-color: #00000040;
}

.photo-thumbnail {
    height: 100px;
    overflow-y: hidden;
    overflow-x: auto;
    display: flex;
    gap: 8px;
    box-sizing: border-box;
}

.thumbnail-wrapper {
    min-height: 80px;
    min-width: 80px;
    max-height: 80px;
    max-width: 80px;
    border-radius: 8px;
    overflow: hidden;
    box-sizing: border-box;
    cursor: pointer;
}

.thumbnail-wrapper.active {
    border: 2px solid #21afff;
}

.thumbnail-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contact-button {
    width: 100%;
    height: 40px;
    background-color: #1976d2;
    color: white;
    text-align: center;
    border: none;
    border-radius: 4px;
    font-size: 18px;
    cursor: pointer;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.contact-button:hover {
    background-color: #1565c0;
}

.details-section {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 30px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.property-overview,
.equipment-conditions {
    flex: 1;
    width: 100%;
}

.section-title {
    width: 100%;
    font-size: 20px;
    font-weight: bold;
    border-bottom: 2px solid #dddddd;
    padding-bottom: 4px;
    margin-bottom: 15px;
    box-sizing: border-box;
    color: #363636;
}

.detail-row {
    display: flex;
    padding: 8px 0;
    /* border-bottom: 1px dashed #eee; */
}

.rent,
.initial-cost {
    align-items: baseline;
}

.detail-label {
    width: 120px;
    min-width: 120px;
    font-weight: bold;
}

.detail-value {
    flex-grow: 1;
    word-break: break-word;
}

.detail-values {
    font-size: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    line-height: 16px;
}

.initial-cost .detail-value {
    color: #0d5a96;
    font-size: 18px;
    font-weight: bold;
}

.rent .detail-value {
    color: #b1120c;
    font-size: 18px;
    font-weight: bold;
}

.detail-row-remarks {
    background-color: #fff7ed;
    border-radius: 8px;
    border: 1px solid #fed7aa;
    padding: 14px 10px;
    font-size: 12px;
    color: #9a3412;
    padding-top: 4px;
    margin-top: 14px;
    margin-bottom: 14px;
}

.remark-header {
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 5px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.tag {
    background-color: rgb(219 234 254);
    color: #2a4bb4;
    padding: 4px 15px;
    border-radius: 15px;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 30px;
    box-sizing: border-box;
}

.map-section {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.map-placeholder {
    width: 100%;
    height: 460px;
    background-color: #e0e0e0;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #777;
    font-size: 16px;
    border-radius: 8px;
    overflow: hidden;
}

.station-location-link {
    white-space: nowrap;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.is-open {
    display: block;
    opacity: 1;
}

.modal-content {
    background-color: #fefefe;
    margin: 10% auto;
    /* Adjusted margin */
    padding: 30px;
    border: none;
    width: 90%;
    max-width: 500px;
    border-radius: 10px;
    /* More rounded */
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.is-open .modal-content {
    transform: translateY(0);
}

.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    display: none;
    /* Hide default close X if we use cancel button */
}

/* Inquiry Form Styles */
.inquiry-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.form-group {
    width: 100%;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    /* Slightly rounded inputs */
    font-size: 16px;
    box-sizing: border-box;
    font-family: inherit;
    color: #333;
}

.form-control:focus {
    outline: none;
    border-color: #1976d2;
}

textarea.form-control {
    resize: vertical;
    min-height: 100px;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.btn-cancel {
    background: none;
    border: none;
    color: #6a5acd;
    /* SlateBlue or similar purple */
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    padding: 10px 20px;
}

.btn-cancel:hover {
    text-decoration: underline;
}

.btn-submit {
    background-color: #1976d2;
    /* Grey initially or always grey as per image? */
    color: white;
    /* Or dark grey */
    border: none;
    padding: 10px 30px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
}

/* If we want it to look active blue: #1976d2 */
/* The image showed it grey, possibly disabled state. I'll make it grey for now to match exactly, or maybe a dark grey. */


@media screen and (max-width: 768px) {

    .property-overview,
    .equipment-conditions {
        flex: unset;
    }

}

/* Share Section */
.share-section {
    margin-top: 20px;
    border-top: 1px solid #eee;
    padding-top: 20px;
    padding-bottom: 20px;
}

.share-buttons {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 10px 0;
}

.share-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    text-decoration: none;
    color: #555;
    font-size: 12px;
    background: none;
    border: none;
}

.share-item:hover {
    opacity: 0.8;
}

.share-icon {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #555;
}

.share-icon .material-symbols {
    font-size: 36px;
}

.share-icon svg {
    width: 32px;
    height: 32px;
    fill: currentColor;
}

/* Specific button overrides */
#share-copy-url .share-icon {
    color: #555;
}

#share-x .share-icon {
    color: black;
}

/* LINE and Instagram colors are set inline or here */