/**
 * Famous Real Estate - Main Stylesheet
 */

/* ============================================
   Reset & Base
   ============================================ */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    font-size: var(--text-base);
    line-height: 1.6;
    color: var(--black-light);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-normal);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

ul, ol {
    list-style: none;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 600;
    line-height: 1.3;
    color: var(--black-dark);
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }
h4 { font-size: var(--text-xl); }

/* ============================================
   Layout
   ============================================ */
.container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

.main-content {
    min-height: calc(100vh - 200px);
}

/* ============================================
   Header
   ============================================ */
.header {
    position: sticky;
    top: 0;
    z-index: var(--z-sticky);
    background: var(--white);
    box-shadow: var(--shadow-sm);
}

.header-top {
    background: var(--black-dark);
    padding: 10px 0;
}

.header-top-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.contact-info {
    display: flex;
    gap: 25px;
}

.contact-info a {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--text-sm);
}

.contact-info a:hover {
    color: var(--gold);
}

.contact-info i {
    margin-right: 8px;
    color: var(--gold);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Language Switcher */
.language-switcher {
    position: relative;
}

.lang-btn {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    padding: 6px 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-sm);
    transition: var(--transition-normal);
}

.lang-btn:hover {
    border-color: var(--gold);
    color: var(--gold);
}

.lang-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 10px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    min-width: 150px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: var(--transition-normal);
    z-index: var(--z-dropdown);
}

.language-switcher:hover .lang-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.lang-dropdown a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    color: var(--black-light);
    font-size: var(--text-sm);
}

.lang-dropdown a:hover {
    background: var(--gray-100);
    color: var(--gold);
}

.lang-dropdown a.active {
    color: var(--gold);
    font-weight: 500;
}

.lang-dropdown a span {
    width: 24px;
    font-weight: 600;
}

/* Social Links */
.social-links {
    display: flex;
    gap: 10px;
}

.social-links a {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    font-size: var(--text-sm);
}

.social-links a:hover {
    background: var(--gold);
    color: var(--black-dark);
}

/* Navbar */
.navbar {
    padding: 15px 0;
}

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

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

.logo img {
    height: 60px;
    width: auto;
}

.logo-text {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: 600;
}

.logo-text .gold {
    color: var(--gold);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 35px;
}

.nav-menu > li > a {
    font-weight: 500;
    color: var(--black-light);
    padding: 10px 0;
    position: relative;
}

.nav-menu > li > a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: var(--transition-normal);
}

.nav-menu > li > a:hover,
.nav-menu > li > a.active {
    color: var(--gold);
}

.nav-menu > li > a:hover::after,
.nav-menu > li > a.active::after {
    width: 100%;
}

/* Dropdown Menu */
.has-dropdown {
    position: relative;
}

.has-dropdown > a i {
    font-size: 10px;
    margin-left: 5px;
    transition: var(--transition-normal);
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    padding: 10px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition-normal);
    z-index: var(--z-dropdown);
}

.has-dropdown:hover .dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.has-dropdown:hover > a i {
    transform: rotate(180deg);
}

.dropdown li a {
    display: block;
    padding: 10px 20px;
    color: var(--black-light);
    font-size: var(--text-sm);
}

.dropdown li a:hover {
    background: var(--gray-100);
    color: var(--gold);
}

.dropdown .divider {
    height: 1px;
    background: var(--gray-200);
    margin: 8px 0;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    width: 25px;
    height: 2px;
    background: var(--black-dark);
    transition: var(--transition-normal);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-normal);
    text-decoration: none;
}

.btn-primary {
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    color: var(--black-dark);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    transform: translateY(-2px);
    box-shadow: var(--shadow-gold);
}

.btn-secondary {
    background: var(--black-dark);
    color: var(--white);
}

.btn-secondary:hover {
    background: var(--black);
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--gold);
    color: var(--gold);
}

.btn-outline:hover {
    background: var(--gold);
    color: var(--black-dark);
}

.btn-lg {
    padding: 16px 32px;
    font-size: var(--text-base);
}

.btn-sm {
    padding: 8px 16px;
    font-size: var(--text-xs);
}

/* ============================================
   Alerts
   ============================================ */
.alert {
    padding: 15px 0;
}

.alert .container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    border-radius: var(--radius-md);
}

.alert-success .container {
    background: #d4edda;
    color: #155724;
}

.alert-error .container {
    background: #f8d7da;
    color: #721c24;
}

.alert-close {
    margin-left: auto;
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.7;
}

.alert-close:hover {
    opacity: 1;
}

/* ============================================
   Page Header
   ============================================ */
.page-header {
    background: linear-gradient(135deg, var(--black-dark), var(--black));
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 15px;
}

.breadcrumb {
    display: flex;
    justify-content: center;
    gap: 10px;
    color: rgba(255, 255, 255, 0.6);
    font-size: var(--text-sm);
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.8);
}

.breadcrumb a:hover {
    color: var(--gold);
}

/* ============================================
   Section Headers
   ============================================ */
.section-header {
    margin-bottom: 40px;
}

.section-header h2 {
    margin-bottom: 10px;
}

.section-header .view-all {
    color: var(--gold);
    font-weight: 500;
}

.section-header .view-all:hover {
    text-decoration: underline;
}

/* ============================================
   Property Card
   ============================================ */
.property-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: var(--transition-normal);
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
}

.property-image {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
    display: block;
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition-slow);
}

.property-card:hover .property-image img {
    transform: scale(1.1);
}

.property-image .no-image {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gray-200);
    color: var(--gray-500);
    font-size: 48px;
}

.property-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.badge {
    display: inline-block;
    padding: 5px 12px;
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
    font-weight: 600;
    text-transform: uppercase;
}

.badge-featured {
    background: var(--gold);
    color: var(--black-dark);
}

.badge-new {
    background: var(--success);
    color: var(--white);
}

.badge-sale {
    background: var(--danger);
    color: var(--white);
}

.badge-rent {
    background: var(--info);
    color: var(--white);
}

.property-category {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    font-size: var(--text-xs);
}

.property-category i {
    margin-right: 5px;
    color: var(--gold);
}

.property-content {
    padding: 20px;
}

.property-price {
    margin-bottom: 10px;
}

.property-price .price {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--gold);
}

.property-price .period {
    color: var(--gray-600);
    font-size: var(--text-sm);
}

.property-title {
    margin-bottom: 10px;
}

.property-title a {
    color: var(--black-dark);
    font-size: var(--text-lg);
}

.property-title a:hover {
    color: var(--gold);
}

.property-location {
    color: var(--gray-600);
    font-size: var(--text-sm);
    margin-bottom: 15px;
}

.property-location i {
    color: var(--gold);
    margin-right: 5px;
}

.property-features {
    display: flex;
    gap: 20px;
    padding: 15px 0;
    border-top: 1px solid var(--gray-200);
    border-bottom: 1px solid var(--gray-200);
    margin-bottom: 15px;
}

.property-features span {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--gray-600);
    font-size: var(--text-sm);
}

.property-features i {
    color: var(--gold);
}

.property-excerpt {
    color: var(--gray-600);
    font-size: var(--text-sm);
    line-height: 1.6;
}

.property-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: var(--gray-100);
}

.property-ref {
    color: var(--gray-600);
    font-size: var(--text-xs);
}

.btn-details {
    color: var(--gold);
    font-weight: 600;
    font-size: var(--text-sm);
}

.btn-details:hover {
    text-decoration: underline;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--black-dark);
    color: var(--white);
}

.footer-main {
    padding: 60px 0;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1.5fr;
    gap: 40px;
}

.footer-logo img {
    height: 50px;
    margin-bottom: 15px;
}

.footer-logo h3 {
    color: var(--white);
    font-size: var(--text-xl);
}

.footer-logo .gold {
    color: var(--gold);
}

.footer-col p {
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 20px;
    line-height: 1.7;
}

.footer-social {
    display: flex;
    gap: 10px;
}

.footer-social a {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-full);
    color: var(--white);
    transition: var(--transition-normal);
}

.footer-social a:hover {
    background: var(--gold);
    color: var(--black-dark);
}

.footer-col h4 {
    color: var(--white);
    font-size: var(--text-lg);
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
}

.footer-col ul li a:hover {
    color: var(--gold);
}

.contact-list li {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
}

.contact-list i {
    color: var(--gold);
    width: 16px;
    margin-top: 3px;
}

.contact-list span,
.contact-list a {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 20px 0;
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--text-sm);
}

/* ============================================
   Forms
   ============================================ */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: var(--black-light);
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: var(--text-base);
    transition: var(--transition-normal);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.1);
}

/* ============================================
   Utilities
   ============================================ */
.text-center { text-align: center; }
.text-gold { color: var(--gold); }
.mb-0 { margin-bottom: 0; }
.mt-4 { margin-top: 1.5rem; }
.mb-4 { margin-bottom: 1.5rem; }
