:root {
    --text-gray: #616161;
    --text-light: #d0d0d0;
    --bg-light: #faf5f2;
    --border-color: #f4ded6;
    --white: #ffffff;
    --max-width: 1296px;
}


/* ===== Typography ===== */
.heading {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: var(--font-size-large);
    line-height: 1.2;
    color: var(--primary);
}

.subheading {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: var(--font-size-small);
    color: var(--secondary);
    padding: 0px 0px 25px 0px;
}

.body-text {
    font-family: var(--font-body);
    font-weight: 400;
    font-size: var(--font-size-small);
    line-height: 1.7;
    color: var(--text-gray);
}


/* ===== Buttons ===== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-sm) var(--spacing-md);
    font-family: var(--font-body);
    font-weight: 600;
    font-size: var(--font-size-small);
    border: 1px solid;
    cursor: pointer;
    transition: var(--transition);
    background: none;
}

.btn img {
    width: 24px;
    height: 24px;
}

.btn-primary {
    background: var(--primary);
    border-color: var(--primary);
    color: var(--white);
}

.btn-primary:hover {
    background: var(--secondary);
    border-color: var(--secondary);
}

.btn-outline {
    background: transparent;
    border-color: var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* ===== Hero Section ===== */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
}

.hero-logo {
    max-width: 580px;
    width: 100%;
    margin: 0 auto;
}

/* ===== Section Headers ===== */
.section-header {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.section-header.centered {
    align-items: center;
    text-align: center;
}

.section-label {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.section-label img {
    width: 147px;
    height: 1px;
}

/* ===== Image Gallery ===== */
.image-gallery {
    display: flex;
    gap: var(--spacing-xl);
    margin-top: var(--spacing-3xl);
}

.gallery-img-large {
    width: 100%;
    height: 667px;
    object-fit: cover;
    box-shadow: rgba(0, 0, 0, 0.16) 0px 10px 36px 0px, rgba(0, 0, 0, 0.06) 0px 0px 0px 1px;
}

/* ===== Project Details ===== */
.project-details {
    background: var(--white);
}

.project-header {
    display: flex;
    flex-direction: column;
    padding-bottom: var(--spacing-lg);
    padding-top: var(--spacing-lg);
}

.project-details .subheading {
    border-bottom: 1px solid rgba(190, 117, 90, 0.5);
}


.project-meta {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: var(--spacing-xl);
    padding-top: var(--spacing-lg);
}

.meta-group {
    display: flex;
    gap: var(--spacing-3xl);
}

.meta-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    text-align: right;
}

.meta-item:not(:last-child) {
    padding-right: var(--spacing-lg);
    border-right: 1px solid rgba(190, 117, 90, 0.5);
}

.meta-label {
    font-size: var(--font-size-small);
    color: var(--secondary);
}

.meta-value {
    font-size: var(--font-size-medium);
    font-weight: 700;
    color: var(--primary);
}

.project-actions {
    display: flex;
    gap: var(--spacing-md);
    padding-right: var(--spacing-lg);
    border-right: 1px solid rgba(190, 117, 90, 0.5);
}

.project-image {
    margin-top: var(--spacing-3xl);
}

.project-image img {
    width: 100%;
    height: auto;
    max-height: 721px;
    object-fit: cover;
}

/* ===== Features ===== */
.why-invest-section {
    background: var(--bg-light);
}

.features-list {
    display: flex;
    flex-direction: column;
}

.feature-card {
    display: flex;
    gap: var(--spacing-lg);
    padding: var(--spacing-lg) 0;
    border-bottom: 1px solid #f4ded6;
}

.feature-icon {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
}

.feature-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.feature-title {
    font-size: var(--font-size-medium);
    font-weight: 700;
    color: var(--primary);
}

/* Location Section */
.location-section {
    background: var(--white);
}

.location-section .container {
    position: relative;
}

.location-timeline {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 80px;
    padding: 250px 0 100px;
    flex-wrap: wrap;
    gap: 20px;
}

.timeline-item {
    position: relative;
    z-index: 2;
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Dot - Always on the line (center) */
.timeline-dot {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    flex-shrink: 0;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Line - Passes through the dots */
.location-timeline::before {
    content: '';
    position: absolute;
    top: var(--line-position, 50%);
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
    z-index: 1;
    transform: translateY(-50%);
}

/* Time - Above the line with good spacing */
.timeline-time {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    position: absolute;
    bottom: calc(50% + 80px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    white-space: nowrap;
}

.time-number {
    font-size: clamp(32px, 4.5vw, 68px);
    font-weight: 700;
    color: var(--primary);
    line-height: 1;
}

.time-unit {
    font-size: clamp(9px, 0.65vw, 11px);
    color: var(--text-gray);
    line-height: 1.4;
    margin-top: 10px;
}

/* Label - Below the line */
.timeline-label {
    font-size: clamp(12px, 1.1vw, 17px);
    color: var(--text-gray);
    text-align: center;
    position: absolute;
    top: calc(50% + 50px);
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    word-break: break-word;
    width: 100%;
}

/* When timeline-time doesn't exist, hide it and adjust label */
.timeline-item.no-time .timeline-time {
    display: none;
}

.timeline-item.no-time .timeline-label {
    top: calc(50% + 50px);
}

.location-map {
    position: absolute;
    top: var(--line-position, 50%);
    left: 0;
    width: clamp(120px, 15vw, 238px);
    height: auto;
    transform: translateY(calc(-50% - 0.5px));
    z-index: 4;
    animation: moveCar 8s ease-in-out infinite;
}

@keyframes moveCar {
    0% {
        left: 0;
    }

    50% {
        left: calc(100% - clamp(120px, 15vw, 238px));
    }

    100% {
        left: 0;
    }
}

@media (max-width: 1400px) {
    .location-timeline {
        padding: 220px 0 90px;
    }

    .timeline-time {
        bottom: calc(50% + 90px);
    }

    .time-number {
        font-size: 56px;
    }

    .location-map {
        width: 200px;
    }
}

@media (max-width: 1200px) {
    .location-timeline {
        padding: 200px 0 80px;
    }

    .timeline-time {
        bottom: calc(50% + 80px);
    }

    .time-number {
        font-size: 48px;
    }

    .location-map {
        width: 180px;
    }
}

@media (max-width: 1024px) {
    .location-timeline {
        gap: 20px;
        margin-bottom: 60px;
        padding: 180px 0 70px;
    }

    .timeline-dot {
        width: 24px;
        height: 24px;
    }

    .time-number {
        font-size: clamp(28px, 3.5vw, 44px);
    }

    .time-unit {
        font-size: clamp(8px, 0.6vw, 10px);
        margin-top: 16px;
    }

    .timeline-label {
        font-size: clamp(12px, 1vw, 16px);
        top: calc(50% + 45px);
    }

    .timeline-time {
        bottom: calc(50% + 70px);
        gap: 6px;
    }

    .timeline-item.no-time .timeline-label {
        top: calc(50% + 45px);
    }

    .location-map {
        width: clamp(100px, 12vw, 160px);
    }
}

@media (max-width: 768px) {
    .location-timeline {
        gap: 12px;
        margin-bottom: 50px;
        padding: 150px 0 60px;
        padding-left: 10px;
        padding-right: 10px;
    }

    .timeline-dot {
        width: 20px;
        height: 20px;
    }

    .time-number {
        font-size: clamp(22px, 3vw, 32px);
    }

    .time-unit {
        font-size: clamp(7px, 0.55vw, 9px);
        margin-top: 12px;
    }

    .timeline-label {
        font-size: clamp(11px, 0.9vw, 14px);
        top: calc(50% + 40px);
    }

    .timeline-time {
        bottom: calc(50% + 60px);
        gap: 4px;
    }

    .timeline-item.no-time .timeline-label {
        top: calc(50% + 40px);
    }

    .location-map {
        width: clamp(60px, 8vw, 100px);
    }
}

@media (max-width: 480px) {
    .location-timeline {
        gap: 8px;
        margin-bottom: 40px;
        padding: 75px 0 50px;
        padding-left: 8px;
        padding-right: 8px;
    }

    .timeline-dot {
        width: 16px;
        height: 16px;
    }

    .time-number {
        font-size: clamp(18px, 2.5vw, 26px);
    }

    .time-unit {
        font-size: clamp(5px, 0.5vw, 8px);
        margin-top: 0;
    }

    .timeline-label {
        font-size: clamp(9px, 0.8vw, 12px);
        top: calc(50% + 25px);
    }

    .timeline-time {
        bottom: calc(50% + 30px);
        gap: 3px;
    }

    .timeline-item.no-time .timeline-label {
        top: calc(50% + 25px);
    }

    .location-map {
        width: clamp(50px, 7vw, 80px);
    }
}

/* ===== Tour Section ===== */
.tour-section {
    background: var(--white);
}

.carousel {
    display: flex;
    align-items: center;
    gap: var(--spacing-md);
    margin: var(--spacing-3xl) 0;
}

.carousel-thumb {
    width: 120px;
    height: 485px;
    object-fit: cover;
    opacity: 0.6;
}

.carousel-main {
    position: relative;
    flex: 1;
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
}

.carousel-images-wrapper {
    position: relative;
    width: 100%;
    max-width: 1120px;
    height: 575px;
    overflow: hidden;
}

.carousel-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.carousel-image.active {
    opacity: 1;
    position: relative;
}

.carousel-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    flex-shrink: 0;
}

.carousel-btn img {
    width: 24px;
    height: 24px;
    rotate: 180deg;
}

.carousel-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
    margin-top: var(--spacing-lg);
}

.carousel-counter {
    text-align: center;
    font-size: var(--font-size-medium);
    font-weight: 700;
    color: var(--primary);
    margin: 0;
}

.carousel-counter .current {
    color: var(--primary);
}

.carousel-counter .total {
    color: var(--gray-3);
}

.carousel-footer-btn {
    display: none;
}

/* ===== Amenities ===== */
.amenities {
    margin-top: var(--spacing-3xl);
    display: flex;
    gap: var(--spacing-xl);
}

.amenities-title {
    font-size: var(--font-size-small);
    font-weight: 700;
    color: var(--secondary);
    text-orientation: mixed;
    flex-shrink: 0;
}

.amenities-list {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-3xl);
}

.amenity-item {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: start;
    min-height: 584px;
}

.amenity-left {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.amenity-header {
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.amenity-number {
    font-size: var(--font-size-small);
    color: var(--secondary);
}

.amenity-content {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    margin: auto 0;
    max-width: 500px;
}

.amenity-image {
    width: 443px;
    height: 584px;
    object-fit: cover;
}

/* ===== Contact Section ===== */
.contact-section {
    background: var(--bg-light);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-3xl);
    align-items: start;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.form-label {
    font-size: var(--font-size-small);
    color: var(--primary);
}

.form-label .required {
    color: #ff0000;
}

.form-input {
    font-family: var(--font-body);
    font-size: var(--font-size-small);
    color: var(--primary);
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--gray-4);
    padding: var(--spacing-sm) 0;
    outline: none;
    text-align: right;
}

.form-input::placeholder {
    color: #d0d0d0;
}

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

.contact-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}


/* ===== Responsive Design ===== */
@media (max-width: 1200px) {
    .container {
        max-width: 960px;
    }

    .heading {
        font-size: var(--font-size-large-tablet);
    }

    .cta-heading {
        font-size: var(--font-size-large);
    }

    .carousel-thumb {
        width: 100px;
        height: 420px;
    }

    .carousel-images-wrapper {
        height: 500px;
    }
}

@media (max-width: 992px) {
    .container {
        max-width: 720px;
    }

    .section-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-xl);
    }

    .section-grid.reverse {
        direction: rtl;
    }

    .navbar {
        flex-wrap: wrap;
    }

    .navbar-center {
        order: -1;
        flex: 1 1 100%;
        text-align: center;
    }

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

    .gallery-img-large {
        width: 100%;
        height: auto;
    }

    .timeline-items {
        grid-template-columns: repeat(2, 1fr);
    }

    .amenities {
        flex-direction: column;
    }

    .amenities-title {
        writing-mode: horizontal-tb;
    }

    .amenity-item {
        grid-template-columns: 1fr;
    }

    .amenity-image {
        width: 100%;
        height: auto;
    }

    .carousel {
        gap: var(--spacing-sm);
    }

    .carousel-thumb {
        width: 80px;
        height: 350px;
    }

    .carousel-images-wrapper {
        height: 400px;
        max-width: 100%;
    }

    .carousel-main {
        gap: var(--spacing-md);
    }

}

@media (max-width: 768px) {
    .container {
        max-width: 540px;
        padding: 0 var(--spacing-sm);
    }

    .section {
        padding: var(--spacing-xl) 0;
    }

    .heading {
        font-size: var(--font-size-large-mobile);
    }

    .body-text {
        font-size: var(--font-size-small-mobile);
    }

    .cta-heading {
        font-size: var(--font-size-large-mobile);
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .project-meta {
        flex-direction: column;
        align-items: stretch;
    }

    .meta-group {
        flex-direction: column;
        gap: var(--spacing-lg);
    }

    .meta-item:not(:last-child) {
        padding-right: 0;
        padding-bottom: var(--spacing-lg);
        border-right: none;
        border-bottom: 1px solid rgba(190, 117, 90, 0.5);
    }

    .project-actions {
        padding-right: 0;
        border-right: none;
    }

    .timeline-items {
        grid-template-columns: 1fr;
    }

    .timeline-number {
        font-size: var(--font-size-large-mobile);
    }

    .carousel {
        gap: var(--spacing-xs);
    }

    .carousel-thumb {
        width: 70px;
        height: 280px;
    }

    .carousel-images-wrapper {
        height: 300px;
    }

    .carousel-btn img {
        width: 20px;
        height: 20px;
    }

    .carousel-main .carousel-btn {
        display: none;
    }

    .carousel-footer-btn {
        display: flex;
    }

    .carousel-footer {
        gap: var(--spacing-md);
    }

    .carousel-counter {
        font-size: var(--font-size-medium-tablet);
    }

    .amenities-list{
        gap: 0;
    }
}

@media (max-width: 576px) {
    .container {
        max-width: 100%;
    }

    .heading {
        font-size: var(--font-size-large-mobile);
    }

    .subheading {
        font-size: var(--font-size-small-mobile);
    }

    .body-text {
        font-size: var(--font-size-small-mobile);
    }

    .btn {
        font-size: var(--font-size-small-mobile);
        padding: var(--spacing-xs) var(--spacing-sm);
    }

    .cta-heading {
        font-size: var(--font-size-large-mobile);
    }

    .navbar-start,
    .navbar-end {
        gap: var(--spacing-sm);
    }

    .logo {
        height: 50px;
    }

    .hero-logo {
        max-width: 90%;
    }

    .section-label img {
        width: 80px;
    }

    .carousel {
        gap: 0.5rem;
    }

    .carousel-thumb {
        width: 60px;
        height: 220px;
    }

    .carousel-images-wrapper {
        height: 250px;
    }

    .carousel-btn {
        padding: 0.25rem;
    }

    .carousel-btn img {
        width: 18px;
        height: 18px;
    }

    .carousel-footer {
        gap: var(--spacing-sm);
    }

    .carousel-counter {
        font-size: var(--font-size-small);
    }
}