/* =============================================
   ARMA EMLAK - RESPONSIVE STYLESHEET
   ============================================= */

/* =============================================
   TABLET (768px - 1199px)
   ============================================= */
@media (max-width: 1199px) {
  .container {
    max-width: 960px;
  }

  h1 {
    font-size: 2.5rem;
  }

  h2 {
    font-size: 2rem;
  }

  .hero-content h1 {
    font-size: 3rem;
  }

  .properties-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }

  .timeline::before {
    left: 30px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    padding-left: 60px;
  }

  .timeline-dot {
    left: 30px;
  }
}

/* =============================================
   TABLET & MOBILE (max-width: 991px)
   ============================================= */
@media (max-width: 991px) {
  .nav-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: 280px;
    height: 100vh;
    background-color: var(--white);
    flex-direction: column;
    align-items: flex-start;
    padding: 70px var(--spacing-lg) var(--spacing-xl);
    row-gap: var(--spacing-sm);
    box-shadow: var(--shadow-lg);
    transition: right 0.3s ease;
    z-index: 999;
    overflow-y: auto;
  }

  .header .nav-menu .nav-link {
    color: var(--grey-900) !important;
    opacity: 1;
  }

  .header .nav-menu .nav-link:hover,
  .header .nav-menu .nav-link.active {
    color: var(--gold) !important;
  }

  .header .nav-menu .dropdown-arrow {
    color: var(--grey-900);
  }

  .nav-menu.active {
    right: 0;
  }

  .header.scrolled .nav-menu {
    background-color: var(--white);
  }

  .mobile-toggle {
    display: flex;
    z-index: 1001;
  }

  .mobile-toggle span {
    background-color: var(--white);
  }

  .header.scrolled .mobile-toggle span {
    background-color: var(--white);
  }

  .nav-link {
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  }

  .header .nav-menu .nav-link::after {
    background-color: var(--gold);
  }

  .nav-link:last-of-type {
    border-bottom: none;
  }

  .nav-link:hover,
  .nav-link.active {
    color: var(--gold);
  }

  .nav-link::after {
    bottom: -2px;
    background-color: var(--gold);
  }

  .dropdown-menu {
    position: static;
    display: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    box-shadow: none;
    background-color: transparent;
    padding: 0.5rem 0 var(--spacing-xs);
    margin: 0;
  }
  
  .dropdown.active .dropdown-menu {
    display: block;
  }
  
  .dropdown-menu a {
    padding: 0.75rem 0 0.75rem 1.75rem;
    font-size: 0.9375rem;
  }

  .search-form {
    flex-direction: column;
    align-items: stretch;
  }
  
  .search-form .form-group {
    min-width: 100%;
  }
  
  .search-form button {
    width: 100%;
    margin-top: 1rem;
  }
  
  .hero-navigation {
    display: none;
  }
  
  .hero-dots {
    bottom: 130px;
  }

  /* Agent Profile Page */
  .profile-header {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .profile-photo {
    width: 150px;
    height: 150px;
    margin: 0 auto;
  }

  .profile-stats {
    justify-content: center;
  }

  .profile-contact-buttons {
    justify-content: center;
  }

  /* New Agent Card Grid */
  .agent-card-grid-new {
    padding: 1rem;
    min-height: 130px;
  }

  .agent-photo-wrapper {
    width: 110px;
    height: 110px;
  }

  .agent-name-large {
    font-size: 1.25rem;
  }

  .agent-label {
    font-size: 0.8125rem;
  }

  .agent-club {
    font-size: 0.8125rem;
  }

  .agent-badge,
  .agent-badge-gold {
    width: 75px;
    height: 75px;
  }

  .hero {
    height: 90vh;
    min-height: 500px;
    padding: var(--spacing-md) 0 var(--spacing-sm);
    margin-top: 80px;
  }
  
  .hero-content {
    margin: 20px auto 0;
  }
  
  .hero-content h1 {
    font-size: 2rem;
    margin-bottom: var(--spacing-sm);
  }
  
  .hero-content p {
    font-size: 0.875rem;
    margin-bottom: var(--spacing-sm);
  }
  
  .search-box {
    padding: var(--spacing-sm);
    width: 90%;
    max-width: 900px;
  }
  
  .search-form .form-group label {
    font-size: 0.8125rem;
  }
  
  .search-form .form-control {
    padding: 0.5rem;
    font-size: 0.875rem;
  }
  
  .search-form button {
    padding: 0.625rem 1.5rem;
    font-size: 0.875rem;
    height: 36px;
  }
  
  .hero-dots {
    bottom: 90px;
  }

  /* Property Request Form */
  .request-form-container {
    padding: 2rem;
  }

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

  .privacy-section {
    padding: 1.5rem;
  }

  .alert {
    right: 1rem;
    left: 1rem;
    max-width: none;
  }

  .hero-content h1 {
    font-size: 2.5rem;
  }

  .footer-content {
    flex-wrap: wrap;
    gap: var(--spacing-md);
  }
  
  .footer-section {
    flex: 0 1 calc(50% - var(--spacing-md));
  }

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

  .team-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }

  .projects-grid {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  }
  
  .about-banner-title .title-line {
    font-size: 2rem;
  }
  
  .about-banner-text p {
    font-size: 0.9375rem;
  }
  
  .feature-row {
    grid-template-columns: 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xl);
  }
  
  .feature-row.reverse {
    direction: ltr;
  }
  
  .feature-title {
    font-size: 1.75rem;
  }
  
  .feature-subtitle {
    font-size: 1.25rem;
  }
  
  .feature-content p {
    font-size: 0.9375rem;
  }
}

/* =============================================
   MOBILE (max-width: 767px)
   ============================================= */
@media (max-width: 767px) {
  :root {
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
  }

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

  h1 {
    font-size: 2rem;
  }

  h2 {
    font-size: 1.75rem;
  }

  h3 {
    font-size: 1.5rem;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-content p {
    font-size: 1rem;
  }

  .properties-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }

  .features-grid {
    grid-template-columns: 1fr;
  }

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

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

  .property-slider {
    height: 300px;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
  }

  .slider-btn.prev {
    left: 10px;
  }

  .slider-btn.next {
    right: 10px;
  }

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

  .agent-card {
    flex: 0 0 280px;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
  }

  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }

  .scroll-to-top {
    width: 45px;
    height: 45px;
    bottom: 80px;
    right: 20px;
  }

  .counters-grid {
    grid-template-columns: 1fr;
  }

  .counter-number {
    font-size: 2.5rem;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
  }
  
  .footer-section {
    flex: 1;
    margin-bottom: var(--spacing-md);
  }

  .footer-links {
    align-items: center;
  }

  .social-links {
    justify-content: center;
  }
  
  .footer-section h3 {
    font-size: 1rem;
  }
  
  .footer-section p {
    font-size: 0.875rem;
  }
  
  .listings-layout {
    grid-template-columns: 1fr;
  }
  
  .listings-sidebar {
    position: static;
    margin-bottom: var(--spacing-lg);
  }
  
  .property-list-card {
    flex-direction: column;
  }
  
  .property-list-image {
    width: 100%;
    height: 200px;
  }
  
  .projects-showcase-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .projects-showcase-section::before {
    font-size: 200px;
  }

  .pagination {
    flex-wrap: wrap;
  }

  .legal-content {
    padding: var(--spacing-md);
  }

  .team-grid {
    grid-template-columns: 1fr;
  }

  .projects-grid {
    grid-template-columns: 1fr;
  }

  .progress-bar {
    flex-wrap: wrap;
    gap: var(--spacing-sm);
  }

  .progress-bar::before,
  .progress-fill {
    display: none;
  }

  .multi-step-form {
    padding: var(--spacing-md);
  }

  .form-navigation {
    flex-direction: column;
  }

  .form-navigation .btn {
    width: 100%;
  }

  /* Sticky Mobile CTA */
  .mobile-sticky-cta {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--gold);
    padding: var(--spacing-sm);
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
    z-index: 998;
    display: flex;
    justify-content: center;
  }

  .mobile-sticky-cta .btn {
    width: 100%;
    max-width: 400px;
  }

  /* Add padding to body when sticky CTA is present */
  body.has-sticky-cta {
    padding-bottom: 70px;
  }
}

/* =============================================
   SMALL MOBILE (max-width: 480px)
   ============================================= */
@media (max-width: 480px) {
  .container {
    padding: 0 var(--spacing-sm);
  }

  h1 {
    font-size: 1.75rem;
  }

  h2 {
    font-size: 1.5rem;
  }

  .hero {
    height: auto;
    margin-top: 70px;
  }
  
  .hero-content {
    margin: 40px auto;
  }
  
  .hero-content h1 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
  }
  
  .hero-content p {
    font-size: 0.8125rem;
    margin-bottom: var(--spacing-sm);
  }

  .btn {
    padding: 0.625rem 1.25rem;
    font-size: 0.875rem;
  }

  .property-card,
  .blog-card {
    border-radius: var(--radius-md);
  }

  .property-features {
    flex-direction: column;
    gap: var(--spacing-sm);
  }

  .search-box,
  .filter-bar {
    padding: 0.75rem;
    width: 95%;
  }
  
  .search-form .form-group label {
    font-size: 0.75rem;
  }
  
  .search-form .form-control {
    padding: 0.5rem;
    font-size: 0.8125rem;
  }
  
  .search-form button {
    padding: 0.5rem 1rem;
    font-size: 0.8125rem;
    height: 34px;
  }

  .hero-slide-portrait img {
    object-fit: contain;
    object-position: center;
    padding: 20px 0;
  }
  
  .hero-dots {
    display: none;
  }

  .agent-card {
    flex: 0 0 250px;
  }

  .projects-showcase-grid {
    grid-template-columns: 1fr;
  }
  
  .projects-showcase-section::before {
    font-size: 100px;
    opacity: 0.03;
  }
  
  .projects-showcase-plus {
    font-size: 60px;
  }

  .section-title h2 {
    font-size: 1.5rem;
  }

  .section-title p {
    font-size: 1rem;
  }
  
  .about-banner-title .title-line {
    font-size: 1.5rem;
  }
  
  .about-banner-text p {
    font-size: 0.875rem;
    line-height: 1.6;
  }
  
  .feature-row {
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
  }
  
  .feature-title {
    font-size: 1.5rem;
  }
  
  .feature-subtitle {
    font-size: 1.125rem;
  }
  
  .feature-content p {
    font-size: 0.875rem;
    line-height: 1.7;
  }
  
  .feature-image {
    border-radius: var(--radius-md);
    height: 100%;
  }
  
  .awards-grid,
  .certificates-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }
  
  .award-card,
  .certificate-card,
  .testimonial-card {
    padding: var(--spacing-md);
  }
  
  .photo-gallery,
  .video-gallery {
    grid-template-columns: 1fr;
  }
  
  .lightbox-prev,
  .lightbox-next {
    display: none;
  }
  
  .lightbox-close {
    top: 10px;
    right: 10px;
  }
  
  .video-player {
    width: 95vw;
  }
  
  .faq-question {
    font-size: 1rem;
    padding: var(--spacing-md);
  }
  
  .faq-answer p {
    font-size: 0.9375rem;
  }
  
  .faq-icon {
    width: 28px;
    height: 28px;
    font-size: 1.25rem;
  }
}

/* =============================================
   LANDSCAPE MOBILE
   ============================================= */
@media (max-height: 500px) and (orientation: landscape) {
  .hero {
    height: auto;
    min-height: 400px;
    padding: 100px 0 var(--spacing-lg);
    margin-top: 70px;
  }

  .hero-content h1 {
    font-size: 2rem;
  }

  .search-box {
    margin-top: var(--spacing-md);
  }
}

/* =============================================
   PRINT STYLES
   ============================================= */
@media print {
  .header,
  .footer,
  .whatsapp-float,
  .scroll-to-top,
  .mobile-sticky-cta,
  .btn,
  .search-box,
  .filter-bar {
    display: none !important;
  }

  body {
    font-size: 12pt;
    color: #000;
  }

  .section {
    page-break-inside: avoid;
  }

  a {
    text-decoration: underline;
  }
}

/* =============================================
   HIGH RESOLUTION DISPLAYS
   ============================================= */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  /* Optimize images and borders for retina displays */
  .property-card,
  .blog-card,
  .agent-card {
    border: 0.5px solid rgba(0, 0, 0, 0.05);
  }
}

/* =============================================
   REDUCED MOTION
   ============================================= */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .hero-content,
  .search-box {
    animation: none;
  }
}

/* =============================================
   DARK MODE SUPPORT (Optional)
   ============================================= */
@media (prefers-color-scheme: dark) {
  /* Keep the site in light mode by default */
  /* Uncomment below if you want to support dark mode */
  
  /*
  :root {
    --white: #1A1A1A;
    --black: #FFFFFF;
    --grey-900: #E0E0E0;
    --grey-600: #B0B0B0;
  }
  
  body {
    background-color: #1A1A1A;
    color: #E0E0E0;
  }
  */
}

/* Project Detail Page Responsive */
@media (max-width: 1024px) {
  .project-detail-layout {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
  
  .project-detail-sidebar {
    order: -1;
  }
  
  .project-stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .related-projects-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .project-detail-title {
    font-size: 2rem;
  }
  
  .project-section-title {
    font-size: 1.75rem;
  }
}

@media (max-width: 768px) {
  .project-hero-section {
    height: 300px;
    margin-top: 70px;
  }
  
  .project-detail-title {
    font-size: 1.75rem;
  }
  
  .project-section-title {
    font-size: 1.5rem;
  }
  
  .project-intro {
    font-size: 1rem;
  }
  
  .project-stats-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 2rem;
  }
  
  .stat-number {
    font-size: 2rem;
  }
  
  .project-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  
  .related-projects-grid {
    grid-template-columns: 1fr;
  }
  
  .breadcrumb {
    font-size: 0.85rem;
  }
}

  .mobile-toggle.active span {
    background-color: var(--grey-900);
  }

