/* Mobile Responsive Styles - Terres.Web */

/* LandDetail Mobile Styles */
@media (max-width: 768px) {
  .land-detail-container {
    padding: 20px;
    margin-bottom: 80px;
  }
  
  .land-detail-header {
    margin-bottom: 24px;
  }
  
  .land-detail-header h1 {
    font-size: 28px;
    margin-bottom: 12px;
  }
  
  .land-detail-content {
    flex-direction: column;
    gap: 24px;
  }
  
  .land-detail-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 12px;
  }
  
  .land-detail-info {
    padding: 24px;
    background: var(--primary99);
    border-radius: 12px;
  }
  
  .land-detail-info h3 {
    font-size: 20px;
    margin-bottom: 16px;
  }
  
  .land-detail-info p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 12px;
  }
  
  .land-detail-price {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary30);
    text-align: center;
    margin: 24px 0;
  }
  
  .land-detail-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
  }
  
  .land-detail-actions .btn {
    width: 100%;
    padding: 16px;
    font-size: 18px;
  }
}

/* Enhanced Sidebar Mobile Styles */
@media (max-width: 768px) {
  .sidebar .user-profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 16px;
  }
  
  /* Mejora del tap highlight en mobile */
  .nav-links-dashboard li a {
    -webkit-tap-highlight-color: transparent;
    position: relative;
    transition: all 0.2s ease;
    outline: none;
    padding: 12px 8px;
  }
  
  /* Estados de interacción mejorados */
  .nav-links-dashboard li a:active {
    background-color: var(--primary90);
    border-radius: 12px;
    transform: scale(0.98);
  }
  
  .nav-links-dashboard li {
    flex: 1;
    text-align: center;
  }
  
  .nav-links-dashboard li a.active {
    background-color: var(--primary30);
    border-radius: 12px;
    color: var(--primary99);
  }
  
  .nav-links-dashboard li a.active .color-svg-path {
    fill: var(--primary99);
  }
  
  .nav-links-dashboard li a:hover {
    border-radius: 12px;
  }
  
  .nav-links-dashboard li svg {
    margin-bottom: 4px;
    width: 24px;
    height: 24px;
  }
  
  .nav-links-dashboard li span {
    font-size: 12px;
    font-weight: 500;
  }
}

/* Form Styles for Mobile */
@media (max-width: 768px) {
  .form-container {
    padding: 24px;
    margin-bottom: 80px;
  }
  
  .form-group {
    margin-bottom: 20px;
  }
  
  .form-group label {
    font-size: 16px;
    margin-bottom: 8px;
    display: block;
  }
  
  .form-group input,
  .form-group select,
  .form-group textarea {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    border: 1px solid var(--primary80);
    border-radius: 12px;
  }
  
  .form-group textarea {
    min-height: 120px;
    resize: vertical;
  }
  
  .form-actions {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
  }
  
  .form-actions .btn {
    width: 100%;
    padding: 18px;
    font-size: 18px;
  }
}

/* Navigation and Header Mobile Styles */
@media (max-width: 768px) {
  .header-mobile {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 70px;
    background: var(--primary99);
    border-bottom: 1px solid var(--primary90);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  .header-mobile .logo {
    height: 45px;
  }
  
  .header-mobile .menu-toggle {
    background: none;
    border: none;
    font-size: 28px;
    color: var(--primary30);
    cursor: pointer;
  }
  
  .main-content {
    padding-top: 70px;
    padding-bottom: 80px;
  }
}

/* Card and Grid Mobile Enhancements */
@media (max-width: 768px) {
  .card {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
  }
  
  .card-image {
    height: 180px;
    object-fit: cover;
  }
  
  .card-content {
    padding: 16px;
  }
  
  .card-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--primary20);
  }
  
  .card-description {
    font-size: 14px;
    color: var(--primary40);
    line-height: 1.4;
    margin-bottom: 12px;
  }
  
  .card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
  }
  
  .card-price {
    font-size: 20px;
    font-weight: bold;
    color: var(--primary30);
  }
  
  .card-actions {
    display: flex;
    gap: 8px;
  }
  
  .card-actions .btn {
    padding: 8px 16px;
    font-size: 14px;
  }
}

/* Modal Mobile Styles */
@media (max-width: 768px) {
  .modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    align-items: center;
    justify-content: center;
  }
  
  /* Solo cuando se muestra explícitamente */
  .modal.show {
    display: flex !important;
  }
  
  .modal-content {
    background: var(--primary99);
    width: 100%;
    max-height: 80vh;
    border-radius: 16px 16px 0 0;
    padding: 20px;
    overflow-y: auto;
  }
  
  .modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--primary90);
  }
  
  .modal-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--primary20);
  }
  
  .modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary40);
    cursor: pointer;
  }
  
  .modal-body {
    margin-bottom: 20px;
  }
  
  .modal-footer {
    display: flex;
    gap: 12px;
    flex-direction: column;
  }
  
  .modal-footer .btn {
    width: 100%;
    padding: 12px;
    font-size: 16px;
  }
}

/* Table Mobile Styles */
@media (max-width: 768px) {
  .table-responsive {
    overflow-x: auto;
    margin-bottom: 80px;
  }
  
  .table {
    min-width: 600px;
    font-size: 14px;
  }
  
  .table th,
  .table td {
    padding: 8px;
    white-space: nowrap;
  }
  
  .table-mobile {
    display: block;
    width: 100%;
  }
  
  .table-mobile tbody,
  .table-mobile tr,
  .table-mobile td {
    display: block;
    width: 100%;
  }
  
  .table-mobile tr {
    border: 1px solid var(--primary90);
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 12px;
    background: var(--primary99);
  }
  
  .table-mobile td {
    border: none;
    padding: 4px 0;
    text-align: left;
  }
  
  .table-mobile td:before {
    content: attr(data-label) ": ";
    font-weight: bold;
    color: var(--primary30);
  }
}

/* Utility Classes for Mobile */
@media (max-width: 768px) {
  .mobile-hidden {
    display: none !important;
  }
  
  .mobile-only {
    display: block !important;
  }
  
  .mobile-center {
    text-align: center !important;
  }
  
  .mobile-full-width {
    width: 100% !important;
  }
  
  .mobile-padding {
    padding: 16px !important;
  }
  
  .mobile-margin-bottom {
    margin-bottom: 80px !important;
  }
}

/* Tablet Specific Adjustments */
@media (max-width: 1024px) and (min-width: 769px) {
  .tablet-grid-2 {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  
  .tablet-padding {
    padding: 24px !important;
  }
  
  .tablet-font-adjust h1 {
    font-size: 28px !important;
  }
  
  .tablet-font-adjust h2 {
    font-size: 24px !important;
  }
  
  .tablet-font-adjust h3 {
    font-size: 20px !important;
  }
}

/* Dashboard Specific Mobile Enhancements */
@media (max-width: 768px) {
  /* Dashboard Toggle Button */
  .dashboard-toggle {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 1001;
    background: var(--primary30);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 12px;
    font-size: 16px;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  }
  
  /* Map View Toggle */
  .view-toggle-container {
    position: fixed;
    top: 16px;
    left: 16px;
    z-index: 1001;
    background: white;
    border-radius: 8px;
    padding: 4px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  .view-toggle {
    display: flex;
    background: var(--primary95);
    border-radius: 6px;
    padding: 2px;
  }
  
  .view-toggle button {
    padding: 8px 16px;
    border: none;
    background: transparent;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
  }
  
  .view-toggle button.active {
    background: var(--primary30);
    color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  }
  
  /* Map Container Mobile */
  .map-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 100;
    display: none;
  }
  
  .map-container.active {
    display: block;
  }
  
  .map-container #map {
    width: 100%;
    height: 100%;
    border-radius: 0;
  }
  
  /* List View */
  .list-view {
    display: block;
  }
  
  .list-view.hidden {
    display: none;
  }
  
  /* Search and Filter Mobile */
  .search-filter-mobile {
    position: sticky;
    top: 0;
    background: white;
    border-bottom: 1px solid var(--primary90);
    padding: 12px 16px;
    z-index: 99;
  }
  
  .search-input-mobile {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid var(--primary80);
    border-radius: 8px;
    font-size: 16px;
    margin-bottom: 12px;
  }
  
  .filter-chips {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
  }
  
  .filter-chip {
    flex-shrink: 0;
    padding: 6px 12px;
    background: var(--primary95);
    border: 1px solid var(--primary80);
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
  }
  
  .filter-chip.active {
    background: var(--primary30);
    color: white;
    border-color: var(--primary30);
  }
}

/* Loading and Empty States */
@media (max-width: 768px) {
  .loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 50vh;
    padding: 20px;
  }
  
  .loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--primary90);
    border-top: 3px solid var(--primary30);
    border-radius: 50%;
    animation: spin 1s linear infinite;
  }
  
  @keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
  }
  
  .loading-text {
    margin-top: 16px;
    color: var(--primary40);
    font-size: 16px;
  }
  
  .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 50vh;
    padding: 20px;
    text-align: center;
  }
  
  .empty-state-icon {
    width: 60px;
    height: 60px;
    background: var(--primary90);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
  }
  
  .empty-state-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary20);
    margin-bottom: 8px;
  }
  
  .empty-state-description {
    font-size: 14px;
    color: var(--primary40);
    line-height: 1.5;
  }
}

/* Floating Action Button */
@media (max-width: 768px) {
  .fab {
    position: fixed;
    bottom: 100px;
    right: 16px;
    width: 56px;
    height: 56px;
    background: var(--primary30);
    color: white;
    border: none;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    font-size: 24px;
    cursor: pointer;
    z-index: 1000;
    transition: all 0.3s;
  }
  
  .fab:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
  }
  
  .fab:active {
    transform: scale(0.95);
  }
}

/* LandDetail Specific Mobile Styles */
@media (max-width: 768px) {
  /* Land Detail Navigation */
  .navbar-land {
    position: sticky;
    top: 0;
    background: white;
    border-bottom: 1px solid var(--primary90);
    z-index: 98;
    padding: 0 20px;
    margin-bottom: 20px;
  }
  
  .nav-links-land {
    display: flex;
    justify-content: space-around;
    padding: 16px 0;
    margin: 0;
    list-style: none;
    overflow-x: auto;
  }
  
  .nav-links-land li {
    flex-shrink: 0;
    padding: 12px 20px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
    min-width: 90px;
  }
  
  .nav-links-land li.active-land {
    background: var(--primary30);
    color: white;
  }
  
  .nav-links-land li:not(.active-land) {
    background: var(--primary95);
    color: var(--primary40);
  }
  
  /* Land Container Mobile Layout */
  .land-container {
    flex-direction: column;
    gap: 24px;
    padding: 0 20px;
  }
  
  .container-left,
  .container-right {
    width: 100%;
  }
  
  /* Container Data Mobile */
  .container-data {
    margin-bottom: 28px;
  }
  
  .container-data h4 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--primary20);
  }
  
  /* Land Cards Mobile */
  .land-card1,
  .land-card2 {
    padding: 24px;
    border-radius: 16px;
    background: var(--primary99);
    border: 1px solid var(--primary90);
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  }
  
  .content-land-card {
    margin-bottom: 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .content-land-card span {
    font-size: 16px;
    color: var(--primary40);
    font-weight: 500;
  }
  
  .content-land-card p {
    font-size: 18px;
    font-weight: 600;
    color: var(--primary20);
    margin: 0;
  }
  
  .content-land-card.divider {
    border-bottom: 2px solid var(--primary80);
    padding-bottom: 16px;
  }
  
  /* Land Card 2 Mobile Layout */
  .land-card2 {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }
  
  .land-card2-left {
    display: block; /* Show graphics on mobile but adapted */
    width: 100%;
  }
  
  .content-land-card.surface {
    background: var(--primary95);
    padding: 16px;
    border-radius: 12px;
    text-align: center;
  }
  
  /* Patrimony Container Mobile */
  .container-patrimony {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  .left-mark {
    width: 4px;
    height: 100%;
    background: var(--primary30);
    border-radius: 2px;
    margin-right: 12px;
  }
  
  /* Town Grid Mobile */
  .town-grid {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  
  /* Price Section Mobile */
  .price {
    padding: 0 20px;
  }
  
  .price-today,
  .price-tomorrow {
    margin-bottom: 28px;
  }
  
  .container-price {
    background: var(--primary99);
    padding: 28px;
    border-radius: 16px;
    margin-bottom: 20px;
    border: 2px solid var(--primary90);
  }
  
  .container-price h3 {
    font-size: 24px;
    line-height: 1.4;
    margin-bottom: 20px;
    color: var(--primary20);
  }
  
  .container-price.tomorrow {
    border-color: var(--primary30);
    background: var(--primary95);
  }
  
  /* Slider Mobile */
  .slider-container {
    margin: 20px 0;
  }
  
  .slider {
    text-align: center;
  }
  
  .slider span {
    font-size: 28px;
    font-weight: bold;
    color: var(--primary30);
    display: block;
    margin-bottom: 16px;
  }
  
  .slider-content-input,
  .slider-content-min-max {
    margin-bottom: 12px;
  }
  
  /* Buttons Price Mobile */
  .buttons-price {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
  }
  
  .buttons-price .primary-button,
  .buttons-price .secondary-button {
    width: 100%;
    padding: 18px;
    font-size: 18px;
    border-radius: 12px;
  }
  
  /* Incidence Land Mobile */
  .incidence-land {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: var(--primary95);
    padding: 20px;
    border-radius: 16px;
    margin-top: 20px;
    gap: 16px;
  }
  
  .incidence-land svg {
    flex-shrink: 0;
  }
  
  .incidence-land p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--primary40);
    margin: 0;
  }
  
  .incidence-land span {
    font-weight: 600;
    color: var(--primary20);
  }
  
  /* Potential Section Mobile */
  .potential {
    padding: 0 20px;
  }
  
  .container-mts {
    background: var(--primary99);
    padding: 28px;
    border-radius: 16px;
    margin-bottom: 24px;
    text-align: center;
  }
  
  .container-mts h4 {
    font-size: 18px;
    color: var(--primary40);
    margin-bottom: 8px;
  }
  
  .container-mts h3 {
    font-size: 36px;
    font-weight: bold;
    color: var(--primary30);
    margin-bottom: 20px;
  }
  
  /* Progress Bar Mobile */
  .progress-bar-mts {
    height: 10px;
    background: var(--primary90);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 16px;
    display: flex;
  }
  
  .progress-bar-mts .covered {
    background: var(--primary30);
    flex: 1;
  }
  
  .progress-bar-mts .expansions {
    background: var(--primary50);
    flex: 1;
  }
  
  .progress-bar-mts-labels {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
  }
  
  .progress-bar-mts-labels span {
    font-weight: 500;
    color: var(--primary40);
  }
  
  /* Surface Table Mobile */
  .container-surface {
    margin-bottom: 20px;
  }
  
  .table-surface {
    width: 100%;
    font-size: 12px;
    overflow-x: auto;
    display: block;
    white-space: nowrap;
  }
  
  .table-surface thead,
  .table-surface tbody,
  .table-surface tr {
    display: block;
  }
  
  .table-surface thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  
  .table-surface tr {
    border: 1px solid var(--primary90);
    border-radius: 8px;
    margin-bottom: 8px;
    padding: 12px;
    background: var(--primary99);
  }
  
  .table-surface td {
    border: none;
    display: block;
    text-align: left;
    padding: 4px 0;
  }
  
  .table-surface td:before {
    content: attr(data-label) ": ";
    font-weight: bold;
    color: var(--primary30);
  }
  
  /* Contact Section Mobile */
  .contact {
    padding: 0 20px;
    margin-bottom: 80px;
  }
  
  .contact h1 {
    font-size: 28px;
    text-align: center;
    margin-bottom: 32px;
    line-height: 1.3;
  }
  
  .contact > div[style*="display:flex"] {
    flex-direction: column !important;
    gap: 20px !important;
    padding: 0 !important;
  }
  
  /* Contact Cards Mobile */
  .contact-card {
    padding: 24px;
    border: 2px solid var(--primary90);
    border-radius: 16px;
    background: var(--primary99);
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .contact-card:hover,
  .contact-card.active {
    border-color: var(--primary30);
    background: var(--primary95);
  }
  
  .contact-card-content h4 {
    font-size: 18px;
    margin-bottom: 8px;
    color: var(--primary20);
  }
  
  .contact-card-content span {
    font-size: 16px;
    color: var(--primary40);
  }
  
  .contact-card-checked {
    width: 28px;
    height: 28px;
    border: 2px solid var(--primary80);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .contact-card.active .contact-card-checked {
    background: var(--primary30);
    border-color: var(--primary30);
  }
  
  /* Modal Mobile Styles for LandDetail */
  .modal .modal-content {
    max-width: 90%;
    margin: 0 auto;
    padding: 24px;
    text-align: center;
  }
  
  .modal .modal-content img {
    max-width: 60px;
    margin-bottom: 16px;
  }
  
  .modal .modal-content h3 {
    font-size: 20px;
    margin-bottom: 12px;
    color: var(--primary20);
  }
  
  .modal .modal-content p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--primary40);
    margin-bottom: 20px;
  }
  
  .modal .modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--primary40);
    cursor: pointer;
  }
  
  /* Virtual Signature Mobile */
  .virtual-signature {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin: 20px 0;
  }
  
  .virtual-signature input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--primary80);
    border-radius: 8px;
    font-size: 16px;
  }
  
  /* Schedule Modal Mobile */
  #schedule-modal .modal-content {
    max-height: 80vh;
    overflow-y: auto;
  }
  
  .modal-days {
    margin-bottom: 16px;
  }
  
  .days-wrapper {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 8px;
  }
  
  .modal-times {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 16px;
  }
  
  .modal-times .time {
    padding: 12px;
    border: 1px solid var(--primary80);
    border-radius: 8px;
    background: var(--primary99);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
  }
  
  .modal-times .time:hover,
  .modal-times .time.active {
    background: var(--primary30);
    color: white;
    border-color: var(--primary30);
  }
  
  .modal-continue {
    width: 100%;
    padding: 14px;
    font-size: 16px;
  }
}

/* Small Mobile Adjustments for LandDetail */
@media (max-width: 480px) {
  .nav-links-land li {
    padding: 10px 16px;
    font-size: 14px;
    min-width: 80px;
  }
  
  .container-price h3 {
    font-size: 20px;
  }
  
  .slider span {
    font-size: 24px;
  }
  
  .container-mts h3 {
    font-size: 32px;
  }
  
  .contact h1 {
    font-size: 24px;
  }
  
  .modal-times {
    grid-template-columns: 1fr;
  }

  /* Home Buyer Section Small Mobile */
  #home-buyer {
    padding: 0 16px !important;
    gap: 20px !important;
  }

  .welcome-buyer h2 {
    font-size: 20px !important;
  }

  .welcome-buyer h5 {
    font-size: 14px !important;
  }

  .complete-reg-card {
    padding: 16px !important;
  }

  .complete-reg-card p {
    font-size: 13px !important;
  }

  .complete-reg-card a {
    font-size: 13px !important;
    padding: 10px 20px !important;
  }
}

/* LandDetail with Sidebar Mobile Integration */
@media (max-width: 768px) {
  /* Ensure LandDetail works well with mobile sidebar */
  .dashboard-main {
    flex-direction: column;
    height: 100vh;
  }

  .divider-header-dashboard{
    display: none;
  }
  
  /* Dashboard container in LandDetail */
  .dashboard-container {
    width: 100%;
    padding: 20px;
    padding-bottom: 100px; /* Space for bottom sidebar */
    overflow-y: auto;
    height: calc(100vh - 80px);
  }

  /* Dashboard header in LandDetail mobile */
  .dashboard-header {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 16px;
    background: var(--primary900);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  }
  
  .dashboard-header-text {
    text-align: center;
  }
  
  .dashboard-header-text h4 {
    font-size: 24px;
    margin-bottom: 8px;
    color: var(--primary20);
  }
  
  .dashboard-header-text h5 {
    font-size: 16px;
    color: var(--primary40);
    margin: 0;
  }
  
  .dashboard-header-right {
    flex-direction: column-reverse;
    gap: 16px;
    align-items: center;
  }
  
  /* User container mobile */
  .user-container {
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: center;
  }
  
  .notification-container {
    position: relative;
  }
  
  .notification-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid var(--primary90);
    border-radius: 12px;
    padding: 12px;
    min-width: 220px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    display: none;
  }
  
  .notification-dropdown.active {
    display: block;
  }
  
  .user-name {
    font-size: 16px;
    margin: 0;
    color: var(--primary20);
    font-weight: 500;
  }
  
  /* Dashboard body mobile */
  .dashboard-body {
    flex: 1;
    overflow-y: auto;
  }

  /* Remove margin-top from dashboard sections on mobile */
  #home-buyer {
    margin-top: 0;
    flex-direction: column !important;
    gap: 24px;
    padding: 0 20px;
  }

  .welcome-buyer {
    width: 100% !important;
    gap: 20px;
  }

  .welcome-buyer h2 {
    font-size: 24px;
    line-height: 1.3;
    margin-bottom: 16px;
  }

  .welcome-buyer h5 {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
  }

  .welcome-buyer form {
    width: 100%;
  }

  .welcome-buyer .primary-button {
    width: 100%;
    padding: 16px;
    font-size: 16px;
  }

  .complete-reg-card {
    width: 100% !important;
    height: auto !important;
    padding: 20px;
    margin-top: 0;
  }

  .complete-reg-card p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 16px;
  }

  .complete-reg-card a {
    font-size: 14px;
    text-align: center;
    margin-left: 0 !important;
    padding: 12px 24px;
    background: var(--primary30);
    color: var(--primary99);
    border-radius: 8px;
    text-decoration: none;
    display: inline-block;
    align-self: center;
  }

  .complete-reg-card a:hover {
    background: var(--primary20);
  }

  .search {
    margin-top: 0;
  }

  .profile {
    margin-top: 0;
    width: 100%;
  }
  
  /* Info section mobile spacing */
  .info {
    margin-bottom: 24px;
  }
  
  /* Potential section mobile spacing */
  .potential {
    margin-bottom: 24px;
  }
  
  /* Price section mobile spacing */
  .price {
    margin-bottom: 24px;
  }
  
  /* Hide/show sections based on active navigation */
  .info,
  .potential,
  .price {
    display: none;
  }
  
  .info.active,
  .potential.active,
  .price.active {
    display: block;
  }
}

/* Responsive breakpoints for LandDetail */
@media (max-width: 480px) {
  .dashboard-container {
    padding: 16px;
    padding-bottom: 90px;
  }
  
  .dashboard-header {
    padding: 16px;
  }
  
  .dashboard-header-text h4 {
    font-size: 20px;
  }
  
  .navbar-land {
    padding: 0 16px;
  }
  
  .land-container {
    padding: 0 16px;
  }
  
  .price {
    padding: 0 16px;
  }
  
  .potential {
    padding: 0 16px;
  }
  
  .contact {
    padding: 0 16px;
  }
}

/* Landscape mode adjustments */
@media (max-width: 768px) and (orientation: landscape) {
  .dashboard-container {
    height: calc(100vh - 70px);
  }
  
  .sidebar {
    height: 70px;
  }
  
  .nav-links-dashboard li a {
    font-size: 11px;
    gap: 4px;
  }
  
  .nav-links-dashboard li svg {
    width: 22px;
    height: 22px;
  }
}

/* High DPI adjustments */
@media (max-width: 768px) and (-webkit-min-device-pixel-ratio: 2) {
  .land-card1,
  .land-card2 {
    border-width: 0.5px;
  }
  
  .container-price {
    border-width: 1px;
  }
  
  .container-price.tomorrow {
    border-width: 1.5px;
  }
}

/* Additional Mobile Styles to Match Desktop Experience */

/* Dashboard Grid Mobile - Keep Similar Layout */
@media (max-width: 768px) {
  .land-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
  }

  /* Keep dashboard cards larger and more desktop-like */
  .dashboard-card {
    padding: 24px;
    border-radius: 16px;
    background: var(--primary99);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--primary90);
  }

  .dashboard-card h3 {
    font-size: 20px;
    margin-bottom: 16px;
    color: var(--primary20);
  }

  .dashboard-card p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--primary40);
  }

  /* Profile section mobile - similar to desktop */
  .profile {
    padding: 24px;
    background: var(--primary99);
    border-radius: 16px;
    margin-bottom: 24px;
  }

  .form-profile {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .profile-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 24px;
  }

  .profile-pic,
  .profile-placeholder {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    margin-bottom: 16px;
  }

  .input-group {
    display: flex;
    align-items: center;
    background: var(--primary95);
    border-radius: 12px;
    padding: 16px;
    gap: 12px;
  }

  .input-group svg {
    flex-shrink: 0;
  }

  .input-group input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    font-size: 16px;
    color: var(--primary20);
  }

  .input-group input::placeholder {
    color: var(--primary50);
  }

  /* Activity section mobile - similar to desktop */
  .activity {
    padding: 24px;
    background: var(--primary99);
    border-radius: 16px;
  }

  .ofers-container {
    min-height: 200px;
  }

  .fixed-notifications {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }

  .notification-item {
    padding: 16px;
    background: var(--primary95);
    border-radius: 12px;
    border-left: 4px solid var(--primary30);
  }

  .notif-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--primary20);
    margin-bottom: 8px;
  }

  .notif-description {
    font-size: 14px;
    color: var(--primary40);
    line-height: 1.5;
  }

  /* Buttons mobile - maintain desktop size and feel */
  .buttons-dashboard {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 24px;
  }

  .secondary-button,
  .primary-button {
    padding: 16px 24px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.2s;
  }

  .secondary-button:hover,
  .primary-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.1);
  }

  /* Authorized land section mobile */
  .authorized-land {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: var(--primary95);
    border-radius: 12px;
    margin-bottom: 24px;
    border-left: 4px solid var(--primary30);
  }

  .authorized-land svg {
    flex-shrink: 0;
    margin-top: 2px;
  }

  .authorized-land p {
    font-size: 14px;
    line-height: 1.5;
    color: var(--primary30);
    margin: 0;
  }

  /* Home section mobile */
  .home {
    padding: 24px;
    background: var(--primary99);
    border-radius: 16px;
    margin-bottom: 24px;
  }

  /* Modal improvements for mobile */
  .modal-content {
    background: var(--primary99);
    width: 90%;
    max-width: 500px;
    max-height: 85vh;
    border-radius: 20px;
    padding: 28px;
    overflow-y: auto;
    margin: 0 auto;
  }

  .modal-content h3 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--primary20);
    text-align: center;
  }

  .modal-content p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--primary40);
    margin-bottom: 24px;
    text-align: center;
  }

  .modal-content .primary-button {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    margin-top: 16px;
  }

  /* Virtual signature mobile */
  .virtual-signature {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin: 24px 0;
  }

  .virtual-signature input {
    width: 100%;
    padding: 16px;
    border: 2px solid var(--primary80);
    border-radius: 12px;
    font-size: 16px;
    background: var(--primary99);
  }

  .virtual-signature input:focus {
    border-color: var(--primary30);
    outline: none;
  }

  /* Schedule modal mobile */
  .modal-days {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .modal-days .day {
    min-width: 80px;
    padding: 12px;
    border: 1px solid var(--primary80);
    border-radius: 8px;
    background: var(--primary99);
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 14px;
  }

  .modal-days .day:hover,
  .modal-days .day.active {
    background: var(--primary30);
    color: white;
    border-color: var(--primary30);
  }

  .modal-times {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
  }

  .modal-times .time {
    padding: 12px;
    border: 1px solid var(--primary80);
    border-radius: 8px;
    background: var(--primary99);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    text-align: center;
  }

  .modal-times .time:hover,
  .modal-times .time.active {
    background: var(--primary30);
    color: white;
    border-color: var(--primary30);
  }

  /* Table mobile improvements */
  .table-surface {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
  }

  .table-surface th,
  .table-surface td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--primary90);
  }

  .table-surface th {
    background: var(--primary95);
    font-weight: 600;
    color: var(--primary20);
    font-size: 14px;
  }

  .table-surface td {
    font-size: 14px;
    color: var(--primary40);
  }

  /* Loading states mobile */
  .loading-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
  }

  .loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid var(--primary90);
    border-top: 4px solid var(--primary30);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 16px;
  }

  .loading-text {
    font-size: 16px;
    color: var(--primary40);
  }

  /* Error states mobile */
  .error-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    background: var(--primary95);
    border-radius: 16px;
    margin: 20px;
  }

  .error-container h3 {
    font-size: 20px;
    color: var(--primary20);
    margin-bottom: 12px;
  }

  .error-container p {
    font-size: 16px;
    color: var(--primary40);
    margin-bottom: 20px;
  }

  /* Success states mobile */
  .success-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px;
    text-align: center;
    background: var(--primary95);
    border-radius: 16px;
    margin: 20px;
    border: 2px solid var(--primary30);
  }

  .success-container h3 {
    font-size: 20px;
    color: var(--primary20);
    margin-bottom: 12px;
  }

  .success-container p {
    font-size: 16px;
    color: var(--primary40);
    margin-bottom: 20px;
  }
}

/* Tablet specific adjustments to bridge mobile and desktop */
@media (min-width: 769px) and (max-width: 1024px) {
  .dashboard-container {
    padding: 32px;
  }

  .dashboard-header {
    padding: 24px;
  }

  .land-container {
    padding: 0 32px;
  }

  .price,
  .potential,
  .contact {
    padding: 0 32px;
  }

  .nav-links-land li {
    padding: 14px 24px;
    font-size: 16px;
  }

  .container-price {
    padding: 32px;
  }

  .container-mts {
    padding: 32px;
  }

  .contact-card {
    padding: 28px;
  }

  .modal-content {
    width: 80%;
    max-width: 600px;
  }
}
