/* styles.css */

/* General Styles */
body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}

.container {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Header Styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 40px;
    margin-right: 10px;
}

.logo span {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2f855a;
}

.nav-links a {
    color: #4a5568;
    text-decoration: none;
    margin-left: 20px;
}

.btn-contact {
    background-color: #2f855a;
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

/* Main Content Styles */
main {
    padding: 2rem 0;
}

h1 {
    font-size: 2rem;
    color: #2f855a;
    margin-bottom: 1.5rem;
}

/* Listing Index Styles */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

.property-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.property-card:hover {
    transform: translateY(-5px);
}

.property-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.property-card .property-details {
    padding: 1rem;
}

.property-card h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.property-card .property-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2f855a;
    margin-bottom: 0.5rem;
}

.property-card .property-info {
    color: #718096;
    margin-bottom: 1rem;
}

.property-card .property-type {
    font-style: italic;
    margin-bottom: 1rem;
}

.btn-view-details {
    display: inline-block;
    background-color: #2f855a;
    color: white;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.btn-view-details:hover {
    background-color: #246c48;
}

/* Property Details Page Styles */
.property-details {

}

/* Gallery Styles */
.property-gallery {
    grid-column: 1 / -1;
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.gallery-main {
    flex: 3;
}

.gallery-main .main-image {
    width: 100%;
    height: 100%;
    display: block;
    max-height: 600px;
    object-fit: cover;
}

.gallery-thumbnails-container {
    flex: 1;
    max-width: 150px;
}

.gallery-thumbnails {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: 600px;
    overflow-y: auto;
    padding-right: 10px;
}

.gallery-thumbnails::-webkit-scrollbar {
    width: 6px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.gallery-image {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.gallery-image:hover {
    opacity: 0.8;
}

.gallery-thumbnails .thumbnail {
    width: 100%;
    height: 100px;
    object-fit: cover;
}

/* Property Main Info Styles */
.property-main-info {
    grid-column: 1 / 2;
}

.property-main-info h1 {
    font-size: 2rem;
    color: #2f855a;
    margin-bottom: 1rem;
}

.property-main-info .price {
    font-size: 1.5rem;
    font-weight: bold;
    color: #2f855a;
    margin-bottom: 1rem;
}

.property-quick-facts {
    display: flex;
    gap: 1rem;
    margin-bottom: 1rem;
}

.property-type {
    font-style: italic;
    margin-bottom: 0.5rem;
}

.zestimate {
    font-weight: bold;
    margin-bottom: 1rem;
}

.est-payment {
    background-color: #e6f7ff;
    padding: 1rem;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Agent Info Styles */
.agent-info {
    grid-column: 2 / 3;
    background-color: #f8f8f8;
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.agent-info img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
}

/* Property Description Styles */
.property-description,
.property-details-grid,
.property-location {
    grid-column: 1 / -1;
    margin-bottom: 2rem;
}

/* Property Details Grid Styles */
.property-details-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1rem;
}

.detail-item {
    background-color: #f8f8f8;
    padding: 1rem;
    border-radius: 8px;
}

.detail-item h3 {
    margin-top: 0;
    color: #2f855a;
}

.detail-item ul {
    list-style-type: none;
    padding-left: 0;
}

.detail-item li {
    margin-bottom: 0.5rem;
}

/* Location Styles */
.property-location img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-top: 1rem;
}

/* Footer Styles */
footer {
    background-color: #2f855a;
    color: white;
    padding: 1rem 0;
    margin-top: 2rem;
}

footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

footer a {
    color: white;
    text-decoration: none;
    margin-left: 1rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    text-decoration: none;
    cursor: pointer;
}

/* Button Styles */
button {
    background-color: #2f855a;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #246c48;
}

.bodyc {
    margin-top: 120px;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .property-details {
        grid-template-columns: 1fr;
    }

    .bodyc {
        margin-top: 60px;
    }

    .agent-info {
        grid-column: 1 / -1;
    }

    .property-gallery {
        flex-direction: column;
    }

    .gallery-thumbnails-container {
        max-width: 100%;
    }

    .gallery-thumbnails {
        flex-direction: row;
        height: auto;
        overflow-x: auto;
        overflow-y: hidden;
        padding-bottom: 10px;
    }

    .gallery-thumbnails .thumbnail {
        width: 100px;
        height: 100px;
        flex-shrink: 0;
    }

    nav, footer .container {
        flex-direction: column;
        text-align: center;
    }

    .nav-links, footer .container div {
        margin-top: 1rem;
    }

    .nav-links a {
        display: block;
        margin: 0.5rem 0;
    }
}

/* Add these styles to your existing CSS file */

.property-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.property-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.property-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.property-card .property-details {
    padding: 1rem;
}

.property-card h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: #333;
}

.property-card .property-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #2f855a;
    margin-bottom: 0.5rem;
}

.property-card .property-info {
    color: #718096;
    margin-bottom: 0.5rem;
}

.property-card .property-type {
    font-style: italic;
    color: #4a5568;
}
/* S.Leinen Added styles for phone button in menu */
.phone-button{
	background-color: #F37221;
  text-transform: uppercase;
  border-radius: 12px;
  margin-right: 20px;
  font-weight: 700;
}
.phone-button a{
	display: inline-block;
  padding: 9px 15px;
  color: #fff;
	font-size: 14px;
	text-decoration: none;
}
.nav-divider{
	margin-left: 2px;
	margin-right: 2px;
}

.gallery-thumbnails .gallery-image {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.gallery-thumbnails .gallery-image:hover {
    opacity: 0.8;
}

.gallery-thumbnails .active {
    border: 2px solid #007bff;
    border-radius: 4px;
    overflow: hidden;
}

.gallery-main .gallery-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Optional: Add smooth transitions */
.gallery-main .gallery-image.fade {
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.gallery-main .gallery-image.fade.show {
    opacity: 1;
}

.gallery-main {
    position: relative;
    overflow: hidden;
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.8);
    border: none;
    border-radius: 50%;
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0;  /* Hidden by default */
    pointer-events: none;  /* Prevents hover state when invisible */
}

/* Show arrows only when hovering over gallery-main */
.gallery-main:hover .gallery-nav {
    opacity: 1;
    pointer-events: auto;
}

.gallery-nav:hover {
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

.gallery-nav svg {
    stroke: #333;
    width: 48px;
    height: 48px;
}

.gallery-thumbnails .gallery-image {
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.gallery-thumbnails .gallery-image:hover {
    opacity: 0.8;
}

.gallery-thumbnails .active {
    border: 2px solid #007bff;
    border-radius: 4px;
    overflow: hidden;
}

.gallery-main .gallery-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Optional: Adjust arrow size for mobile devices */
@media (max-width: 768px) {
    .gallery-nav {
        width: 48px;
        height: 48px;
    }
    
    .gallery-nav svg {
        width: 32px;
        height: 32px;
    }
}