/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f8f9fa;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header Styles */
.header {
    background-color: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.logo h1 {
    color: #2c5aa0;
    font-size: 1.8rem;
    font-weight: bold;
}

.nav ul {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav a:hover {
    color: #2c5aa0;
}

/* Hero Section */
.hero {
    background-color: #2c5aa0;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: white;
    text-align: center;
    padding: 120px 0 80px;
    margin-top: 80px;
    position: relative;
    min-height: 60vh;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: bold;
}

.hero-content p {
    font-size: 1.2rem;
    max-width: 800px;
    margin: 0 auto 2rem;
    line-height: 1.8;
}

.price-box {
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 2rem;
    border-radius: 10px;
    display: inline-block;
    margin-top: 2rem;
}

.price-item {
    display: block;
    margin-bottom: 1rem;
}

.price-item:last-child {
    margin-bottom: 0;
}

.label {
    font-weight: bold;
    display: block;
    margin-bottom: 0.5rem;
    color: #2c5aa0;
}

.price-usd {
    font-size: 2.5rem;
    font-weight: bold;
    color: #27ae60;
    display: block;
}

.price-zar {
    font-size: 2rem;
    font-weight: bold;
    color: #e74c3c;
    display: block;
}

.currency {
    font-size: 1rem;
    color: #666;
    font-style: italic;
}

/* Main Content */
.main-content {
    background: white;
    padding: 4rem 0;
}

.description {
    text-align: center;
    margin-bottom: 4rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.description p {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
    color: #555;
}

.contact-email {
    margin-top: 2rem;
}

.contact-email a {
    color: #2c5aa0;
    text-decoration: none;
    font-size: 1.2rem;
    font-weight: bold;
}

.contact-email a:hover {
    text-decoration: underline;
}

/* Features Section */
.features {
    margin-bottom: 4rem;
    padding: 3rem 0;
    background: #f8f9fa;
    border-radius: 10px;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #2c5aa0;
}

.features-description {
    max-width: 800px;
    margin: 0 auto 3rem;
    text-align: center;
}

.features-description p {
    font-size: 1.1rem;
    color: #555;
    line-height: 1.8;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-icon {
    font-size: 2rem;
    display: block;
    margin-bottom: 1rem;
}

.feature-item span:last-child {
    font-weight: bold;
    color: #333;
}

/* Location Section */
.location {
    margin-bottom: 4rem;
}

.location h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #2c5aa0;
}

.location p {
    text-align: center;
    font-size: 1.1rem;
    color: #555;
    max-width: 600px;
    margin: 0 auto 2rem;
}

.map-container {
    text-align: center;
    margin: 2rem 0;
}

.map-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.address {
    text-align: center;
    margin-top: 1rem;
}

.address p {
    font-style: italic;
    color: #666;
}

/* Gallery Section */
.gallery {
    margin-bottom: 4rem;
}

.gallery h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #2c5aa0;
}

.gallery-featured {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-bottom: 4rem;
}

.gallery-item {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.gallery-item p {
    padding: 1rem;
    text-align: center;
    font-weight: bold;
    color: #333;
}

/* All Images Section - Carousel */
.all-images {
    margin-bottom: 4rem;
}

.all-images h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #2c5aa0;
}

.carousel-container {
    max-width: 800px;
    margin: 0 auto;
}

.carousel-main {
    position: relative;
    margin-bottom: 1rem;
    background: #f8f9fa;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.carousel-main-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    display: block;
    transition: opacity 0.3s ease;
}

.carousel-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.carousel-counter {
    font-size: 1.1rem;
    font-weight: bold;
    color: #333;
    padding: 0 1rem;
}

.prev-btn, .next-btn {
    background: #2c5aa0;
    color: white;
    border: none;
    padding: 0.8rem 1.2rem;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.5rem;
    line-height: 1;
    transition: all 0.3s ease;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prev-btn:hover, .next-btn:hover {
    background: #1e3f73;
    transform: scale(1.1);
}

.prev-btn:disabled, .next-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
}

.carousel-thumbnails {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    justify-content: center;
    flex-wrap: wrap;
}

.thumbnail {
    width: 80px;
    height: 60px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    opacity: 0.7;
}

.thumbnail:hover {
    opacity: 1;
    transform: scale(1.05);
}

.thumbnail.active {
    border-color: #2c5aa0;
    opacity: 1;
    transform: scale(1.1);
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin-bottom: 2rem;
}

.image-grid img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.image-grid img:hover {
    transform: scale(1.05);
}

.gallery-navigation {
    text-align: center;
}

/* Contact Section */
.contact {
    margin-bottom: 4rem;
    padding: 3rem 0;
    background: #f8f9fa;
    border-radius: 10px;
}

.contact h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #2c5aa0;
}

.contact-methods {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 800px;
    margin: 0 auto;
}

.contact-item {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.contact-label {
    font-weight: bold;
    color: #2c5aa0;
    display: block;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.contact-item a {
    color: #333;
    text-decoration: none;
    display: block;
    margin-bottom: 0.5rem;
}

.contact-action {
    background: #27ae60;
    color: white !important;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    display: inline-block;
    margin-top: 1rem;
    transition: background 0.3s ease;
}

.contact-action:hover {
    background: #219a52;
}

/* Footer */
.footer {
    background: #333;
    color: white;
    padding: 2rem 0;
    text-align: center;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-contact a {
    color: #27ae60;
    text-decoration: none;
    font-weight: bold;
}

.footer-contact a:hover {
    text-decoration: underline;
}

.footer-description {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.property-icon {
    font-size: 1.2rem;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Image Loading and Display */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

img[src=""] {
    display: none;
}

/* Ensure images are visible by default */
.gallery-item img,
.image-grid img,
.map-image {
    opacity: 1;
    transition: none;
}
