/*--------------------------------------------------------------
# Royal Responsive Styles for The Crown Landing Page
# Mobile-First Approach with Royal Design Principles
--------------------------------------------------------------*/

/*--------------------------------------------------------------
# Mobile Navigation Enhancement
--------------------------------------------------------------*/
@media (max-width: 1199px) {
  .mobile-nav-toggle {
    display: block;
    color: var(--royal-navy);
    font-size: 28px;
    margin-right: 15px;
    cursor: pointer;
    transition: var(--royal-transition-fast);
  }

  .royal-navmenu {
    position: fixed;
    inset: 0;
    padding: 50px 0;
    z-index: 9997;
    opacity: 0;
    visibility: hidden;
    background: rgba(33, 37, 41, 0.8);
    /* transition: var(--royal-transition); */
    /* transform: translateX(100%); */
  }

  /* .royal-navmenu.mobile-nav-active { */
  body.royal-navmenu .mobile-nav-active {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }

  .royal-navmenu ul {
    display: block;
    position: absolute;
    top: 55px;
    right: 20px;
    bottom: 20px;
    left: 20px;
    padding: 10px 0;
    margin: 0;
    background: rgb(255 255 255);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    overflow-y: auto;
    border: 1px solid rgba(255, 255, 255, 0.2);
    /* box-shadow: var(--royal-shadow-heavy); */
  }

  .royal-navmenu a {
    display: block;
    padding: 15px 25px;
    color: #000000;
    font-size: 18px;
    font-weight: 500;
    border-radius: 12px;
    margin: 5px 20px;
    transition: var(--royal-transition-fast);
  }

  .royal-navmenu a:hover,
  .royal-navmenu a.active {
    background: rgb(0 0 0 / 86%);
    color: var(--royal-gold);
  }

  .royal-navmenu a::after {
    display: none;
  }

  body.mobile-nav-active {
    overflow: hidden;
  }

  body.mobile-nav-active .mobile-nav-toggle {
    color: white;
    position: absolute;
    font-size: 32px;
    top: 20px;
    right: 20px;
    margin-right: 0;
    z-index: 9999;
  }
}

/*--------------------------------------------------------------
# Large Desktop Optimizations (1201px and up)
--------------------------------------------------------------*/
@media (min-width: 1201px) {
  .royal-section-title {
    font-size: 3rem;
  }

  .royal-privilege-card,
  .royal-location-card,
  .royal-amenity-card {
    padding: 50px 40px;
  }

  .royal-hero-content {
    padding-right: 80px;
  }

  .residence-details {
    padding-left: 80px;
  }

  .royal-living-content {
    padding-left: 30px;
  }
}

/*--------------------------------------------------------------
# Desktop Medium (993px - 1200px)
--------------------------------------------------------------*/
@media (max-width: 1200px) and (min-width: 993px) {
  .royal-section-title {
    font-size: 3.5rem;
  }

  .royal-hero-content {
    padding-right: 40px;
  }

  .residence-details,
  .royal-living-content {
    padding-left: 40px;
  }

  .royal-stats-grid {
    gap: 30px;
  }

  .feature-grid {
    gap: 25px;
  }
}

/*--------------------------------------------------------------
# Desktop Small & Tablet (769px - 992px)
--------------------------------------------------------------*/
@media (max-width: 992px) {
  .section {
    padding: 100px 0;
  }

  .royal-section-title {
    font-size: 3rem;
  }

  .royal-hero-title {
    font-size: clamp(2.5rem, 4vw, 3.5rem);
  }

  /* Header adjustments */
  .header-container {
    padding: 0 20px;
  }

  .logo-title {
    font-size: 24px;
  }

  .royal-cta-button {
    padding: 12px 20px;
    font-size: 13px;
  }

  /* Hero Section */
  .royal-hero .container {
    padding: 0 20px;
  }

  .royal-hero-content {
    padding-right: 0;
    margin-bottom: 50px;
  }

  .royal-hero-features {
    flex-direction: column;
    gap: 20px;
  }

  .royal-hero-actions {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }

  .floating-crown-badge {
    top: 20px;
    right: 20px;
    padding: 15px;
  }

  .royal-highlight-card {
    bottom: 20px;
    left: 20px;
    padding: 15px 20px;
  }

  /* Stats Grid */
  .royal-stats-grid {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  /* Location and Amenities */
  .royal-location-nav .nav-link {
    padding: 14px 18px;
    font-size: 13px;
  }

  .royal-location-nav .nav-link i {
    font-size: 14px;
  }

  .royal-location-card,
  .royal-amenity-card {
    padding: 25px 20px;
  }

  /* Residences */
  .residence-details,
  .royal-living-content {
    padding-left: 0;
    margin-top: 40px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Contact */
  .royal-contact-info,
  .royal-contact-form {
    padding: 40px 30px;
  }

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

/*--------------------------------------------------------------
# Tablet Portrait (577px - 768px)
--------------------------------------------------------------*/
@media (max-width: 768px) {
  .section {
    padding: 80px 0;
  }

  .royal-section-title {
    font-size: 2.5rem;
    line-height: 1.1;
  }

  .royal-hero-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
  }

  /* Header */
  .header-container {
    padding: 0 15px;
  }

  .crown-logo-royal {
    width: 45px;
    height: 45px;
  }

  .crown-logo-royal i {
    font-size: 20px;
  }

  .logo-title {
    font-size: 20px;
  }

  .logo-subtitle {
    font-size: 10px;
  }

  /* Hero Section */
  .royal-hero .container {
    padding: 0 15px;
  }

  .hero-main-image {
    height: 400px;
  }

  .badge-number {
    font-size: 24px;
  }

  .badge-label {
    font-size: 10px;
  }

  /* Buttons */
  .royal-btn-primary,
  .royal-btn-secondary,
  .royal-btn-outline-light {
    padding: 14px 24px;
    font-size: 14px;
  }

  /* Cards */
  .royal-privilege-card {
    padding: 30px 25px;
  }

  .card-wildlife-icon {
    width: 70px;
    height: 70px;
    font-size: 28px;
  }

  .card-content h4 {
    font-size: 20px;
  }

  /* Stats */
  .stat-number {
    font-size: 36px;
  }

  .royal-stat-card {
    padding: 30px 25px;
  }

  /* Tabs */
  .royal-location-nav,
  .royal-residence-nav {
    flex-wrap: wrap;
    gap: 5px;
  }

  .royal-location-nav .nav-link {
    padding: 12px 15px;
    font-size: 12px;
    margin: 2px;
  }

  .tab-title {
    font-size: 16px;
  }

  .tab-subtitle {
    font-size: 11px;
  }

  /* Contact Form */
  .form-header h4 {
    font-size: 24px;
  }

  .contact-hero h3 {
    font-size: 28px;
  }

  .royal-contact-wrapper {
    margin-top: 40px;
  }

  .royal-exclusivity-content {
    padding-right: 0;
  }

  .gallery .royal-section-title {
    font-size: 2.5rem;
  }
}

/*--------------------------------------------------------------
# Mobile Large (481px - 576px)
--------------------------------------------------------------*/
@media (max-width: 576px) {
  .section {
    padding: 60px 0;
  }

  .royal-section-title {
    font-size: 2rem;
  }

  .royal-hero-title {
    font-size: clamp(1.8rem, 4vw, 2.2rem);
  }

  /* Header */
  .header-container {
    padding: 0 10px;
  }

  .crown-logo-royal {
    width: 40px;
    height: 40px;
  }

  .crown-logo-royal i {
    font-size: 18px;
  }

  .logo-title {
    font-size: 18px;
  }

  .logo-content {
    gap: 1px;
  }

  /* Hero */
  .royal-hero .container {
    padding: 0 10px;
  }

  .royal-badge {
    padding: 12px 20px;
    font-size: 12px;
  }

  .hero-main-image {
    height: 300px;
  }

  .floating-crown-badge {
    padding: 12px 16px;
  }

  .badge-number {
    font-size: 20px;
  }

  .badge-label {
    font-size: 9px;
  }

  /* Cards */
  .royal-privilege-card,
  .royal-location-card,
  .royal-amenity-card {
    padding: 25px 20px;
  }

  .card-wildlife-icon,
  .location-icon,
  .amenity-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }

  .card-content h4,
  .royal-location-card h5,
  .royal-amenity-card h5 {
    font-size: 18px;
  }

  /* Stats */
  .royal-stat-card {
    padding: 25px 20px;
  }

  .stat-icon {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }

  .stat-number {
    font-size: 32px;
  }

  /* Tabs */
  .royal-location-nav .nav-link,
  .royal-residence-nav .nav-link {
    padding: 10px 12px;
    font-size: 11px;
  }

  .tab-title {
    font-size: 14px;
  }

  .tab-subtitle {
    font-size: 10px;
  }

  /* Spotlight */
  .spotlight-image {
    height: 250px;
  }

  .spotlight-content h3 {
    font-size: 32px;
  }

  .spotlight-content p {
    font-size: 16px;
  }

  /* Residence Details */
  .residence-details h3 {
    font-size: 24px;
  }

  .residence-description {
    font-size: 16px;
  }

  /* Contact */
  .royal-contact-info,
  .royal-contact-form {
    padding: 30px 20px;
  }

  .contact-hero h3 {
    font-size: 24px;
  }

  .form-header h4 {
    font-size: 20px;
  }

  .form-crown {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  /* Footer */
  .crown-logo-footer {
    width: 60px;
    height: 60px;
    font-size: 28px;
  }

  .footer-title {
    font-size: 28px;
  }

  .footer-description {
    font-size: 16px;
  }
}

/*--------------------------------------------------------------
# Mobile Small (320px - 480px)
--------------------------------------------------------------*/
@media (max-width: 480px) {
  .section {
    padding: 50px 0;
  }

  .royal-section-title {
    font-size: 1.8rem;
  }

  .royal-hero-title {
    font-size: clamp(1.6rem, 4vw, 2rem);
  }

  /* Header */
  .royal-header {
    padding: 15px 0;
    background-color: #fff;
  }

  .header-container {
    padding: 0 10px;
  }

  /* Hero */
  .hero-main-image {
    height: 250px;
  }

  .royal-hero-description {
    font-size: 16px;
  }

  /* Buttons */
  .royal-btn-primary,
  .royal-btn-secondary,
  .royal-btn-outline-light {
    padding: 12px 20px;
    font-size: 13px;
  }

  /* Cards */
  .royal-privilege-card,
  .royal-location-card,
  .royal-amenity-card {
    padding: 20px 15px;
  }

  .card-wildlife-icon,
  .location-icon,
  .amenity-icon {
    width: 50px;
    height: 50px;
    font-size: 20px;
  }

  .card-content h4,
  .royal-location-card h5,
  .royal-amenity-card h5 {
    font-size: 16px;
  }

  .card-content p,
  .royal-location-card p,
  .royal-amenity-card p {
    font-size: 14px;
  }

  /* Stats */
  .royal-stat-card {
    padding: 20px 15px;
  }

  .stat-number {
    font-size: 28px;
  }

  /* Tabs - Stack vertically on very small screens */
  .royal-location-nav,
  .royal-residence-nav {
    /* flex-direction: column; */
    width: 100%;
    /* max-width: 280px; */
  }

  .royal-location-nav .nav-link,
  .royal-residence-nav .nav-link {
    width: 100%;
    text-align: center;
    padding: 12px;
    margin: 2px 0;
  }

  /* Contact */
  .contact-item {
    align-items: center;
    text-align: center;
  }

  .contact-icon {
    margin-bottom: 10px;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    padding: 14px 16px;
    font-size: 14px;
  }

  /* Footer */
  .footer-logo {
    flex-direction: column;
    gap: 15px;
  }

  .footer-title {
    font-size: 24px;
  }

  .disclaimer-text li {
    font-size: 13px;
  }
}

/*--------------------------------------------------------------
# Landscape Mobile Optimizations
--------------------------------------------------------------*/
@media (max-height: 500px) and (orientation: landscape) {
  .royal-hero {
    min-height: 100vh;
    padding: 20px 0;
  }

  .section {
    padding: 40px 0;
  }

  .royal-section-title {
    font-size: 1.8rem;
  }

  .hero-main-image {
    height: 250px;
  }

  .floating-crown-badge {
    top: 15px;
    right: 15px;
    padding: 10px 15px;
  }

  .badge-number {
    font-size: 18px;
  }

  .royal-highlight-card {
    bottom: 15px;
    left: 15px;
    padding: 10px 15px;
  }
}

/*--------------------------------------------------------------
# Print Styles
--------------------------------------------------------------*/
@media print {
  .royal-header,
  .mobile-nav-toggle,
  .royal-scroll-top,
  .floating-crown-badge,
  .royal-highlight-card,
  .floating-info-card,
  .overlay-badge {
    display: none !important;
  }

  .royal-hero,
  .royal-bg-dark,
  .royal-bg-pattern {
    background: white !important;
    color: black !important;
  }

  .section {
    padding: 30px 0 !important;
  }

  .royal-section-title,
  .card-content h4,
  .royal-location-card h5,
  .royal-amenity-card h5 {
    color: black !important;
  }

  .royal-privilege-card,
  .royal-location-card,
  .royal-amenity-card,
  .royal-stat-card {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    page-break-inside: avoid;
  }
}

/*--------------------------------------------------------------
# High DPI Display Optimizations
--------------------------------------------------------------*/
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .hero-main-image,
  .main-image,
  .living-image,
  .residence-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }

  .crown-logo-royal,
  .crown-logo-footer {
    border-radius: 50%;
  }
}

/*--------------------------------------------------------------
# Accessibility - Reduced Motion
--------------------------------------------------------------*/
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .royal-privilege-card:hover,
  .royal-location-card:hover,
  .royal-amenity-card:hover,
  .royal-stat-card:hover {
    transform: none !important;
  }

  .card-wildlife-icon:hover,
  .location-icon:hover,
  .amenity-icon:hover,
  .stat-icon:hover,
  .achievement-icon:hover {
    transform: none !important;
  }
}

/*--------------------------------------------------------------
# Dark Mode Support (Future Enhancement)
--------------------------------------------------------------*/
@media (prefers-color-scheme: dark) {
  /* Maintaining light theme for luxury real estate branding */
  /* Dark mode styles can be added here in the future if needed */
}

/*--------------------------------------------------------------
# Container Responsive Adjustments
--------------------------------------------------------------*/
@media (min-width: 1400px) {
  .container,
  .header-container {
    max-width: 1400px;
  }
}

@media (max-width: 1399px) {
  .container,
  .header-container {
    max-width: 1200px;
  }
}

@media (max-width: 1199px) {
  .container,
  .header-container {
    max-width: 960px;
  }
}

@media (max-width: 991px) {
  .container,
  .header-container {
    max-width: 720px;
  }
}

@media (max-width: 767px) {
  .container,
  .header-container {
    max-width: 540px;
    padding: 0 15px;
  }
}

@media (max-width: 575px) {
  .container,
  .header-container {
    max-width: 100%;
    padding: 0 15px;
  }
}

/*--------------------------------------------------------------
# Interactive Hover States for Touch Devices
--------------------------------------------------------------*/
@media (hover: none) {
  .royal-privilege-card,
  .royal-location-card,
  .royal-amenity-card,
  .royal-stat-card {
    transition: none;
  }

  .royal-btn-primary:hover,
  .royal-btn-secondary:hover,
  .royal-btn-outline-light:hover {
    transform: none;
  }
}

/*--------------------------------------------------------------
# Performance Optimizations for Mobile
--------------------------------------------------------------*/
@media (max-width: 768px) {
  .royal-hero-background,
  .hero-pattern-overlay {
    display: none;
  }

  .royal-bg-pattern::before,
  .royal-bg-dark::before,
  .royal-footer::before {
    display: none;
  }

  /* Reduce complex shadows on mobile */
  .royal-privilege-card,
  .royal-location-card,
  .royal-amenity-card {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  }

  .gallery .royal-section-title {
    font-size: 1.8rem;
  }

  main.main {
    margin-top: 75px;
  }
  .royal-features-list .feature-item {
    width: 100%;
  }
  .royal-features-list {
    display: grid;
  }

  .reraBlock img {
    width: 80px;
  }

  .contact-content {
    text-align: left;
  }
}

@media (min-width: 1200px) {
  .royal-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(254, 253, 251, 0.95);
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(212, 165, 116, 0.2);
    padding: 20px 0;
    transition: var(--royal-transition);
  }
}

@media (min-width: 1600px) {
  .hero-banner-slider {
    height: auto;
    margin-top: 99px;
  }
}
