:root {
    --primary-color: #2c3e50;
    --secondary-color: #C4944C;
    --background-color: #f9f9f9;
    --text-color: #333;
    --border-color: #ddd;
    --nav-height: 80px;
    --mobile-nav-height: 60px;
}

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

body {
    font-family: 'Open Sans', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: #fff;
    overflow-x: hidden;
}

/* Navbar Styles */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: var(--nav-height);
    background: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 0 2rem;
}

.navbar-logo {
    height: 50px;
}

.mobile-menu-btn {
    display: none;
    margin-left: auto;
    font-size: 1.5rem;
    color: var(--primary-color);
    cursor: pointer;
}

.navbar-links {
    margin-left: auto;
    display: flex;
    gap: 2rem;
}

.navbar-links a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.navbar-links a:hover {
    color: var(--secondary-color);
}

.book-now-btn {
    background: var(--secondary-color);
    color: white !important;
    padding: 0.5rem 1.5rem;
    border-radius: 4px;
    margin-left: 2rem;
}

/* Hero Section */
.hero {
    height: 80vh;
    background-image: url('../images/gondwanaheader.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    margin-top: var(--nav-height);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
}

.hero-content {
    position: relative;
    z-index: 1;
    padding: 0 1rem;
}

.hero h1 {
    font-size: 3.5rem;
    font-weight: 300;
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 1rem;
    color: white;
}

.hero p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Search Form */
.search-container {
    position: relative;
    max-width: 1200px;
    margin: -50px auto 4rem;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 2;
}

.search-grid {
    display: flex;
    gap: 1rem;
    align-items: flex-end;
    margin-bottom: 1.5rem;
}

.form-group {
    flex: 1;
    min-width: 0; /* Prevents flex items from overflowing */
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

input, select {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
    color: var(--primary-color);
    font-family: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Custom select styling */
.select-wrapper {
    position: relative;
    width: 100%;
}

.select-wrapper::after {
    content: '▼';
    font-size: 0.8rem;
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--secondary-color);
    pointer-events: none;
}

select {
    cursor: pointer;
    padding-right: 2.5rem;
}

/* Hover and focus states */
input:hover, select:hover {
    border-color: var(--secondary-color);
}

input:focus, select:focus {
    outline: none;
    border-color: var(--secondary-color);
    box-shadow: 0 0 0 3px rgba(196, 148, 76, 0.1);
}

/* Search buttons */
.search-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 1rem;
    width: 100%;
}

.search-button {
    width: auto;
    min-width: 200px;
    margin: 0 auto;
    display: block;
    padding: 1rem 2rem;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.search-button:hover {
    background-color: #b38544;
    transform: translateY(-1px);
}

.search-button-secondary {
    background-color: #4a5568;
}

.search-button-secondary:hover {
    background-color: #2d3748;
}

.search-button.loading {
    color: transparent;
}

.spinner {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Properties Container */
#properties {
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

/* Properties Grid */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 2.5rem;
}

.property-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    border: 1px solid rgba(0, 0, 0, 0.05);
    width: 100%;
    margin-bottom: 1.5rem;
}

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

.property-image {
    height: 250px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.property-details {
    padding: 1.8rem;
    background: white;
}

.property-details h3 {
    color: var(--primary-color);
    margin-bottom: 1.2rem;
    font-size: 1.5rem;
    font-weight: 600;
    line-height: 1.3;
}

.features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 1.5rem;
}

.feature {
    background: rgba(196, 148, 76, 0.08);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    color: var(--secondary-color);
    font-weight: 500;
}

.price {
    margin-bottom: 1.5rem;
    display: flex;
    align-items: baseline;
}

.amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--secondary-color);
}

.book-button, .view-button {
    width: 100%;
    background-color: var(--secondary-color);
    color: white;
    padding: 1rem;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s;
    text-align: center;
    text-decoration: none;
    display: inline-block;
}

.book-button:hover, .view-button:hover {
    background-color: #b38544;
}

.book-button[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
    background-color: #95a5a6;
}

.view-button {
    display: block;
    text-decoration: none;
    text-align: center;
}

.property-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #718096;
    font-size: 0.9rem;
    margin-bottom: 1.2rem;
}

.property-location i {
    color: var(--secondary-color);
}

.availability {
    margin: 1.2rem 0;
    text-align: center;
}

.status {
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    display: inline-block;
}

.status.available {
    background-color: rgba(76, 175, 80, 0.1);
    color: #2e7d32;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.status.unavailable {
    background-color: rgba(244, 67, 54, 0.1);
    color: #d32f2f;
    border: 1px solid rgba(244, 67, 54, 0.2);
}

.date-range {
    margin: 1.2rem 0;
    padding: 1.2rem;
    background: #f8f9fa;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    font-size: 0.95rem;
}

.date-range p {
    margin: 0.4rem 0;
    color: var(--primary-color);
}

.error-message {
    background: white;
    padding: 2rem;
    border-radius: 15px;
    text-align: left;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(244, 67, 54, 0.2);
    max-width: 800px;
    margin: 2rem auto;
}

.error-message h3 {
    color: #d32f2f;
    margin-bottom: 1rem;
    font-size: 1.5rem;
    text-align: center;
}

.error-message p {
    color: #666;
    margin-bottom: 1rem;
    line-height: 1.5;
}

.debug-info {
    margin-top: 2rem;
    padding: 1.5rem;
    background: #f5f5f5;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.debug-info p {
    color: #333;
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.debug-info pre {
    background: #fff;
    padding: 1rem;
    border-radius: 4px;
    overflow-x: auto;
    font-family: monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    border: 1px solid #eee;
}

/* Footer Styles */
.footer {
    background: #2c3e50;
    color: white;
    padding: 4rem 2rem;
    margin-top: 4rem;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 3rem;
}

.footer-section h3 {
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-section p {
    color: #ecf0f1;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: #ecf0f1;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-links a {
    color: white;
    text-decoration: none;
    font-size: 1.5rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 3rem;
    margin-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #bdc3c7;
    font-size: 0.9rem;
}

/* Booking Form Modal */
.booking-form {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.booking-form.hidden {
    display: none;
}

.booking-form-content {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    width: 90%;
    max-width: 800px;
}

.booking-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 2rem;
}

.booking-actions button {
    padding: 1rem;
    background-color: var(--secondary-color);
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s;
}

.booking-actions button[type="button"]:last-child {
    background-color: #95a5a6;
}

.booking-actions button[type="button"]:last-child:hover {
    background-color: #7f8c8d;
}

.booking-actions button:hover {
    background-color: #b38544;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
    .search-container {
        margin: -30px 1rem 4rem;
        padding: 1.5rem;
    }
    
    .properties-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        padding: 2rem 1rem;
    }
    
    .property-details {
        padding: 1.5rem;
    }
}

@media (max-width: 1024px) {
    .search-grid {
        flex-wrap: wrap;
        gap: 1rem;
    }

    .form-group {
        flex: 1 1 calc(50% - 0.5rem);
    }
    
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    .search-buttons {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .search-button {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 768px) {
    :root {
        --nav-height: 60px;
    }
    
    .navbar {
        padding: 0 1rem;
    }
    
    .mobile-menu-btn {
        display: block;
    }
    
    .navbar-links {
        position: fixed;
        top: var(--nav-height);
        left: 0;
        right: 0;
        background: white;
        flex-direction: column;
        padding: 1rem;
        gap: 1rem;
        box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
        transform: translateY(-150%);
        transition: transform 0.3s ease;
        z-index: 999;
        align-items: center;
    }
    
    .navbar-links.show {
        transform: translateY(0);
    }
    
    .navbar-links a {
        width: 100%;
        text-align: center;
        padding: 0.8rem 0;
    }
    
    .book-now-btn {
        margin-left: 0;
        width: 100%;
        display: block;
        text-align: center;
    }
    
    .hero {
        height: 60vh;
    }
    
    .hero h1 {
        font-size: 2rem;
        letter-spacing: 2px;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .search-container {
        margin: -20px auto 2rem;
        padding: 1rem;
        width: 90%;
    }
    
    .search-grid {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    
    .form-group {
        flex: 1 1 100%;
        width: 100%;
        max-width: 400px;
    }
    
    .search-button {
        width: 100%;
        padding: 0.8rem;
        font-size: 1rem;
        max-width: 100%;
    }
    
    #properties {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 1rem;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        width: 100%;
    }
    
    .property-card {
        width: 100%;
        max-width: 450px;
        margin-bottom: 1.5rem;
    }
    
    .property-image {
        height: 200px;
    }
    
    .property-details h3 {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }
    
    .features {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }
    
    .feature {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }
    
    .amount {
        font-size: 1.5rem;
    }
    
    .book-button {
        padding: 1rem;
        font-size: 1rem;
    }
    
    .footer {
        padding: 2rem 1rem;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .footer-bottom {
        padding-top: 2rem;
        margin-top: 2rem;
    }
    
    .booking-form-content {
        padding: 1rem;
        width: 95%;
    }
    
    .booking-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.8rem;
    }
    
    .property-image {
        height: 180px;
    }
    
    .property-details {
        padding: 1rem;
    }
    
    .property-details h3 {
        font-size: 1.3rem;
    }
    
    .amount {
        font-size: 1.3rem;
    }
    
    .date-range {
        padding: 1rem;
    }
    
    .date-range p {
        font-size: 0.9rem;
    }
    
    .status {
        padding: 0.6rem 1rem;
        font-size: 0.8rem;
    }
    
    .navbar-logo {
        height: 40px;
    }
    
    .search-container {
        width: 95%;
        margin: -15px auto 1.5rem;
    }
    
    .property-card {
        max-width: 100%;
    }
}

/* Scroll to top button */
.scroll-to-top {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background-color: var(--secondary-color);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s ease;
    border: none;
    z-index: 98;
}

.scroll-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-to-top:hover {
    background-color: #b38544;
    transform: translateY(-5px);
}

/* Chat Support */
.chat-support-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: var(--primary-color);
    color: white;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: none;
    z-index: 98;
    font-size: 1.5rem;
    transition: all 0.3s ease;
}

.chat-support-btn:hover {
    background-color: #1a2a37;
    transform: scale(1.1);
}

.chat-support-window {
    position: fixed;
    bottom: 110px;
    right: 30px;
    width: 350px;
    height: 450px;
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    z-index: 99;
    transition: all 0.3s ease;
}

.chat-support-window.hidden {
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.9);
}

.chat-header {
    background-color: var(--primary-color);
    color: white;
    padding: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
}

.close-chat-btn {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-chat-btn:hover {
    transform: scale(1.2);
}

.chat-messages {
    flex: 1;
    padding: 1rem;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.message {
    display: flex;
    margin-bottom: 0.5rem;
}

.message.user {
    justify-content: flex-end;
}

.message-content {
    max-width: 80%;
    padding: 0.8rem 1rem;
    border-radius: 15px;
    position: relative;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
}

.message.support .message-content {
    background-color: #f1f1f1;
    border-bottom-left-radius: 5px;
}

.message.user .message-content {
    background-color: var(--secondary-color);
    color: white;
    border-bottom-right-radius: 5px;
}

.message-content p {
    margin: 0 0 0.5rem;
    font-size: 0.95rem;
}

/* Formatted message styling */
.formatted-message {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.5;
    width: 100%;
}

.formatted-message strong {
    font-weight: 600;
}

.chat-list {
    margin: 0.5rem 0;
    padding-left: 1.2rem;
    list-style-type: disc;
    width: 100%;
}

.chat-list li {
    margin-bottom: 0.3rem;
    padding-left: 0;
    line-height: 1.4;
}

.message.user .formatted-message strong {
    color: #fff;
    font-weight: 700;
}

.message.support .formatted-message a {
    color: var(--secondary-color);
    text-decoration: underline;
}

.message-time {
    font-size: 0.75rem;
    opacity: 0.8;
    display: block;
    text-align: right;
    margin-top: 0.5rem;
    margin-bottom: 0;
}

.chat-input-container {
    display: flex;
    padding: 1rem;
    border-top: 1px solid #eee;
    background-color: #f9f9f9;
}

.chat-input {
    flex: 1;
    padding: 0.8rem 1rem;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 0.95rem;
}

.chat-input:focus {
    outline: none;
    border-color: var(--secondary-color);
}

.send-message-btn {
    background-color: var(--secondary-color);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 0.8rem;
    cursor: pointer;
    border: none;
    transition: all 0.2s;
}

.send-message-btn:hover {
    background-color: #b38544;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .chat-support-window {
        width: 300px;
        height: 400px;
        right: 20px;
        bottom: 100px;
    }
    
    .chat-support-btn {
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        bottom: 25px;
    }
    
    .scroll-to-top {
        width: 45px;
        height: 45px;
        right: 20px;
        bottom: 85px;
    }
}

@media (max-width: 480px) {
    .chat-support-window {
        width: 280px;
        right: 10px;
        bottom: 90px;
        height: 350px;
    }
    
    .chat-support-btn {
        right: 15px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
        bottom: 25px;
    }
    
    .scroll-to-top {
        width: 40px;
        height: 40px;
        right: 15px;
        bottom: 80px;
    }
}

/* Chat typing indicator */
.typing-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.typing-indicator span {
    height: 8px;
    width: 8px;
    margin: 0 2px;
    background-color: #777;
    border-radius: 50%;
    display: inline-block;
    opacity: 0.4;
}

.typing-indicator span:nth-child(1) {
    animation: typing 1.5s infinite 0s;
}

.typing-indicator span:nth-child(2) {
    animation: typing 1.5s infinite 0.3s;
}

.typing-indicator span:nth-child(3) {
    animation: typing 1.5s infinite 0.6s;
}

@keyframes typing {
    0% {
        transform: translateY(0);
        opacity: 0.4;
    }
    50% {
        transform: translateY(-5px);
        opacity: 0.8;
    }
    100% {
        transform: translateY(0);
        opacity: 0.4;
    }
} 